Skip to Content

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

NameTypeDescription
document_idrequiredstringThe 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"
  ]
}

On this page