Skip to Content

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.

asks firstChanges something in your workspace, so clients ask you before running it.

What it does

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. Only needed for that: to use a library item or form as it is, call create_from_template or send_template with its lib_ id directly. An item AppliFlo has set up (status ready) is copied by an owner or admin as a Ready template (mode copied), with its roles and boxes; a form's one-time set-up (business details, "Who sends this?") can then be given in the app or with update_template_settings. An official form AppliFlo hasn't set up (status draft), or any official form when a member saves it, is saved from the form's own fillable fields as a Draft template (mode saved_from_form, with roles if given) that an owner or admin sets up and finalises (set_template_roles, finalise_template). A member can't copy an AppliFlo contract (403). Returns template in get_template's shape (kind saved). An AppliFlo library contract no lawyer has reviewed is refused (409 contract_risk_required) until the person accepts the own-risk terms: ask them, then call again with risk_accepted: true.

Inputs

NameTypeDescription
template_idrequiredstringA library or official template_id ("lib_...") from list_templates.Up to 64 characters
namestringThe new template's name. Defaults to the item's title or the form's label.Up to 120 characters
rolesstring[]Saved from the form's fields only (mode saved_from_form): role names in signing order, e.g. ["Client", "Agent"]. A copy keeps AppliFlo's roles.Up to 4 items
risk_acceptedbooleanThe person accepts AppliFlo's own-risk terms (Terms section 8A) for a library contract no lawyer has reviewed. Set it only after asking the person.

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_library_as_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",
      "minLength": 1,
      "maxLength": 64,
      "description": "A library or official template_id (\"lib_...\") from list_templates."
    },
    "name": {
      "type": "string",
      "maxLength": 120,
      "description": "The new template's name. Defaults to the item's title or the form's label."
    },
    "roles": {
      "type": "array",
      "maxItems": 4,
      "items": {
        "type": "string",
        "maxLength": 60
      },
      "description": "Saved from the form's fields only (mode saved_from_form): role names in signing order, e.g. [\"Client\", \"Agent\"]. A copy keeps AppliFlo's roles."
    },
    "risk_accepted": {
      "type": "boolean",
      "description": "The person accepts AppliFlo's own-risk terms (Terms section 8A) for a library contract no lawyer has reviewed. Set it only after asking the person."
    }
  },
  "required": [
    "template_id"
  ],
  "additionalProperties": false
}

On this page