save_as_template
Keep a DRAFT document (one not sent yet, with its fields detected or placed) as one of the workspace's saved templates, like the app's "Save as template": its PDF, fields, choice questions and form rules are copied; the document itself is untouched.
asks firstChanges something in your workspace, so clients ask you before running it.
What it does
Keep a DRAFT document (one not sent yet, with its fields detected or placed) as one of the workspace's saved templates, like the app's "Save as template": its PDF, fields, choice questions and form rules are copied; the document itself is untouched. roles names the people who fill it ("Client", "Agent"; up to 4); without it, one role per recipient the fields are assigned to, else a default. The template starts as a Draft: an owner or admin sets it up (set_template_roles, update_template_settings; box owners in the app's builder) and finalises it (finalise_template) before send_template can use it (create_from_template works on a Draft). Returns saved_template in get_template's shape. To keep an AppliFlo library contract or official form instead, use save_library_as_template.
Inputs
| Name | Type | Description |
|---|---|---|
document_idrequired | string | The draft document's document_id.Up to 64 characters |
name | string | Defaults to the document's name.Up to 120 characters |
roles | string[] | Role names in signing order, e.g. ["Client", "Agent"].Up to 4 items |
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": "save_as_template",
"arguments": {
"document_id": "<document_id>"
}
}
}Input schema
The JSON Schema the server lists for this tool in tools/list.
{
"type": "object",
"properties": {
"document_id": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"description": "The draft document's document_id."
},
"name": {
"type": "string",
"maxLength": 120,
"description": "Defaults to the document's name."
},
"roles": {
"type": "array",
"maxItems": 4,
"items": {
"type": "string",
"maxLength": 60
},
"description": "Role names in signing order, e.g. [\"Client\", \"Agent\"]."
}
},
"required": [
"document_id"
],
"additionalProperties": false
}save_library_as_template
Keep an AppliFlo library contract or official government form (a "lib_..." template_id from list_templates) as one of the workspace's OWN saved templates, as the app's Templates page does, so the workspace can edit its roles, settings and boxes.
list_template_versions
A saved template's finalised versions, newest first: version, current, note, field_count, envelope_count (how many envelopes each sent) and created_at.