Skip to Content

get_doc

One Doc in full: title, status, revision (pass it to update_doc and send_doc), visibility, page_size, roles (the people it is for, in signing order; their keys are send_doc's people keys), signing_order, can_edit, can_share, editing_by, where it came from (contract_template_id, ai_drafted), and for a sent Doc envelope_id and pdf_document_id.

readOnly reads. Clients can run it without asking you.

What it does

One Doc in full: title, status, revision (pass it to update_doc and send_doc), visibility, page_size, roles (the people it is for, in signing order; their keys are send_doc's people keys), signing_order, can_edit, can_share, editing_by, where it came from (contract_template_id, ai_drafted), and for a sent Doc envelope_id and pdf_document_id. The content comes as markdown (default; boxes and signatures as tokens, variables as {{key}}) or, with format: "json", as the editor's TipTap JSON content (exact: box ids, fixed values, formatting Markdown can't hold). Markdown here is AppliFlo's doc format: # / ## / ### headings, paragraphs, - and 1. lists, > quotes, --- dividers, **bold** and *italic*, plus tokens: {{client.full_name}} (a variable filled from the CRM at send), [[box role=client kind=text label="Passport number"]] (a box a person fills; kind text, date, number, email, phone, checkbox, dropdown with options="A|B", initials), [[signature role=client]] (a signature block) and [[pagebreak]]. role is a role's name (as get_doc lists them) or key.

Inputs

NameTypeDescription
doc_idrequiredstringA Doc's doc_id (from list_docs, or list_documents' kind 'doc' rows).Up to 80 characters
formatstringmarkdown (default) or json (the TipTap document).One of: markdown, json

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": "get_doc",
    "arguments": {
      "doc_id": "<doc_id>"
    }
  }
}

Input schema

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

{
  "type": "object",
  "properties": {
    "doc_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "A Doc's doc_id (from list_docs, or list_documents' kind 'doc' rows)."
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "json"
      ],
      "description": "markdown (default) or json (the TipTap document)."
    }
  },
  "required": [
    "doc_id"
  ],
  "additionalProperties": false
}

On this page