Skip to Content

get_template

Read ONE template from list_templates by its template_id (a saved template, an AppliFlo contract or an official form, "lib_...") with its full detail: everything list_templates shows, plus the boxes (sender_fields[], fixed_fields[], a contract's required_values[] and party_fields[]) and the e-sign notice.

readOnly reads. Clients can run it without asking you.

What it does

Read ONE template from list_templates by its template_id (a saved template, an AppliFlo contract or an official form, "lib_...") with its full detail: everything list_templates shows, plus the boxes (sender_fields[], fixed_fields[], a contract's required_values[] and party_fields[]) and the e-sign notice. Use it for the boxes before prefill or fixed_overrides, and to re-check a template right before a send. Each entry (get_template's shape): template_id (what get_template, create_from_template, send_template and send_template_bulk take), kind (saved = the workspace's own; contract = a contract template the workspace wrote in the older model, drafted with values and recipients (see its required_values[], recipients_required and party_fields[]); library = an AppliFlo contract template; official = a government form from AppliFlo's official forms library, with official_form {code, label, title, agency, agency_name} and country), name, status, version (the current one: send_template_bulk needs it), roles[] in signing order (key is what people takes, e.g. {"r1": {name, email}}; label is the human name such as Client; kind signer|filler), sender_fields[] (the only boxes you may prefill, keyed by index; bulk: true ones can be prefilled per row) and fixed_fields[] (boxes the template fills itself). status ready: set up with roles, use it with send_template (one call) or create_from_template + send_envelope. status draft: a saved template an owner or admin hasn't finalised (create_from_template gives a draft document; send_template refuses it), or an official form AppliFlo hasn't set up (create_from_template imports it as a document with its fields read; fill it, then add recipients at send_envelope). own_risk: true: an AppliFlo contract no lawyer has reviewed; it is used only after the person accepts the own-risk terms (risk_accepted: true). setup_required: true: the app asks for a one-time set-up of this form in the workspace (its business details and who sends it); without it, a box the set-up would answer refuses the draft or send with 422 unanswered_ask or missing_detail: give it in fixed_overrides, or ask an owner or admin to set the form up in the app. esign (null for most): {mode, notice}; mode block = the agency wants a handwritten signature, so it can be filled and downloaded but never sent for e-signing (422 esign_not_allowed); warn = the sender must acknowledge the notice (esign_risk_acknowledged: true).

Inputs

NameTypeDescription
template_idrequiredstringtemplates[].template_id from list_templates.

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_template",
    "arguments": {
      "template_id": "<template_id>"
    }
  }
}

Input schema

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

{
  "type": "object",
  "properties": {
    "template_id": {
      "type": "string",
      "description": "templates[].template_id from list_templates."
    }
  },
  "required": [
    "template_id"
  ],
  "additionalProperties": false
}

On this page