Skip to main content
Glama

template_create_document

Create and send a document for signing from a pre-configured template by assigning recipients to template placeholders. Use it to turn a template into a ready-to-sign document.

Instructions

Create and send a document from a template. Templates are pre-configured and ready to send, so this tool sends the document for signing by default.

IMPORTANT: When a user asks to "send a template" or "send a document from a template", the document will be sent immediately for signing. Set draft: true ONLY if the user explicitly asks to create a draft or review before sending.

REQUIRED:

  • template_id: The template ID to create the document from

  • recipients: Array of recipient objects, each with:

    • id: Unique identifier for this recipient (e.g., "recipient_1")

    • placeholder_name: Name of the template placeholder to assign (must match exactly)

    • email: Recipient's email address

    • name: (optional) Recipient's display name

Example: { "template_id": "abc123", "recipients": [{ "id": "recipient_1", "placeholder_name": "Client", "email": "client@example.com", "name": "John Doe" }] }

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "template_id": "<template_id>",
      "recipients": "<recipients>"
    },
    "name": "template_create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDocument name override.
draftNo
filesNoAdditional files to append.
messageNo
subjectNo
metadataNo
text_tagsNo
expires_inNo
recipientsYes
template_idYes
redirect_urlNo
copied_contactsNo
embedded_signingNo
apply_signing_orderNoWhen true, recipients sign one at a time in the order of the recipients array.
decline_redirect_urlNo
custom_requester_nameNo
custom_requester_emailNo
embedded_signing_notificationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.9
    • changedInput schema / properties / copied_contacts / items / properties / email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    • changedInput schema / properties / custom_requester_email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    • changedInput schema / properties / recipients / items / properties / email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  2. First observedv0.3.3

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=false and destructiveHint=false, so safety framing is partly covered; the description usefully adds that the document is emailed for signing immediately by default, which is real undisclosed-by-annotations risk context. It stops short of saying whether a sent document can be recalled, how placeholder mismatches fail, or what the response contains, and the noted sibling document_send_draft implies a follow-on flow the description doesn't connect to.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads purpose then the IMPORTANT send-by-default warning, which is the right ordering. The REQUIRED block plus JSON example largely restates what the schema already encodes for template_id/recipients, so a few lines could be trimmed, but nothing is rambling.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter, deeply nested mutation with no output schema, the description covers the required path and the send/draft decision well but leaves most optional surface unexplained — notably embedded_signing, which gates send_email and send_email_delay per the schema. Adequate for the happy path, incomplete for the full capability set.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 17% across 18 parameters, so the description must compensate. It does document both required parameters in detail (including the nested recipient shape and a worked example) and explains the draft flag's semantics, but the ~14 optional parameters (embedded_signing, expires_in, passcode, files, metadata, redirect URLs) are left entirely to a schema that barely describes them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: 'Create and send a document from a template,' which cleanly separates it from template_create (creating the template itself) and document_create. It never names a sibling explicitly, so differentiation is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when/when-not rule for the most consequential decision: send by default, set draft:true ONLY when the user explicitly asks for a draft or review. That is clear conditional guidance, though it says nothing about when to prefer document_create or when a template is the wrong choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.