suggest_roles
Read who a document's form asks for (e.g.
readOnly reads. Clients can run it without asking you.
What it does
Read who a document's form asks for (e.g. Applicant, Migration agent, Witness): each role's label, kind and party type, found by rules from the form's own boxes and questions (no AI, free). Use it before set_envelope_recipients to know which recipients to add. Returns the document's saved Prepare state (recipients, routing, each box's owner and value, version; the same state the web Prepare page shows; a government ID number in a box shows only its last 3 characters, masked: true, and is sent in full), a box tally, and send: whether it is ready to send (else why not) and the web link to review it. When ready, send it with send_envelope and use_prepare_draft: true.
Inputs
| Name | Type | Description |
|---|---|---|
document_idrequired | string | The document's id (from upload_document, create_from_template or a document list). |
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": "suggest_roles",
"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",
"description": "The document's id (from upload_document, create_from_template or a document list)."
}
},
"required": [
"document_id"
]
}set_form_rules
Replace a document's whole skip-rule list, in order, as the app's Detect step saves it when a person edits, removes or adds a rule on a question.
set_envelope_recipients
Set who a document goes to, in signing order: each recipient's role label (as the form names it, see suggest_roles), name, email and kind (signer fills and signs, filler fills only, cc gets a copy).