Skip to Content

docs_ai_draft

Draft a new Doc (a contract, letter or agreement) with AppliFlo's AI from a short brief, as Docs → New → Draft with AI does.

asks firstChanges something in your workspace, so clients ask you before running it.

What it does

Draft a new Doc (a contract, letter or agreement) with AppliFlo's AI from a short brief, as Docs → New → Draft with AI does. Makes a new private Doc marked as an AI draft, writes the whole draft into it and names it (unless you give a title). Returns doc_id, title, revision, the section headings, and checks (facts the AI added that weren't in the brief, unknown variables, a cut-off answer): tell the person to check those. Spends the workspace's monthly AI writing allowance (Free: 3 drafts a month) and is refused like the app with ai_disabled, ai_plan, ai_rate_limited or ai_budget_reached. Sending an AI-drafted Doc later asks the person to accept the own-risk terms. To add to an existing Doc use docs_ai_continue; for a library clause use insert_clause.

Inputs

NameTypeDescription
briefrequiredstringWhat the Doc is, in the person's words, with the facts they gave (parties, fees, dates).Up to 4000 characters
titlestringThe Doc's title. Leave out to use the draft's own title.Up to 200 characters
doc_typestringThe kind of document, e.g. "Engagement letter".Up to 80 characters
tonestringplain, formal or short.One of: plain, formal, short
jurisdictionstringWhose law it is written for. Leave out for the workspace's setting.One of: Australia, New Zealand, United Kingdom, Ireland, Canada, United States, Singapore, India
rolesobject[]Who signs or gets a copy, in order (default: the app's default roles). The draft puts a signature for each signer.1 to 10 items
labelrequiredstringe.g. Client, AgentUp to 60 characters
kindrequiredstringOne of: signer, cc

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "docs_ai_draft",
    "arguments": {
      "brief": "<brief>"
    }
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 10,
      "maxLength": 4000,
      "description": "What the Doc is, in the person's words, with the facts they gave (parties, fees, dates)."
    },
    "title": {
      "type": "string",
      "maxLength": 200,
      "description": "The Doc's title. Leave out to use the draft's own title."
    },
    "doc_type": {
      "type": "string",
      "maxLength": 80,
      "description": "The kind of document, e.g. \"Engagement letter\"."
    },
    "tone": {
      "type": "string",
      "enum": [
        "plain",
        "formal",
        "short"
      ],
      "description": "plain, formal or short."
    },
    "jurisdiction": {
      "type": "string",
      "enum": [
        "Australia",
        "New Zealand",
        "United Kingdom",
        "Ireland",
        "Canada",
        "United States",
        "Singapore",
        "India"
      ],
      "description": "Whose law it is written for. Leave out for the workspace's setting."
    },
    "roles": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10,
      "description": "Who signs or gets a copy, in order (default: the app's default roles). The draft puts a signature for each signer.",
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "description": "e.g. Client, Agent"
          },
          "kind": {
            "type": "string",
            "enum": [
              "signer",
              "cc"
            ]
          }
        },
        "required": [
          "label",
          "kind"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "brief"
  ],
  "additionalProperties": false
}

On this page