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
| Name | Type | Description |
|---|---|---|
briefrequired | string | What the Doc is, in the person's words, with the facts they gave (parties, fees, dates).Up to 4000 characters |
title | string | The Doc's title. Leave out to use the draft's own title.Up to 200 characters |
doc_type | string | The kind of document, e.g. "Engagement letter".Up to 80 characters |
tone | string | plain, formal or short.One of: plain, formal, short |
jurisdiction | string | Whose 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 |
roles | object[] | 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 |
labelrequired | string | e.g. Client, AgentUp to 60 characters |
kindrequired | string | One 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
}save_doc_as_template
Keep a Doc as one of the workspace's doc templates, as the app's "Save as template": its content, roles and settings (not a PDF).
docs_ai_continue
Write more of an existing Doc with AppliFlo's AI and put it in the Doc, as the editor's Continue writing and Write a clause do. kind continue (default): a paragraph or two following on from the text before the place; kind clause: one new clause or section with its own numbered heading in the style of the rest (instruction required, e.g.