Skip to main content
Glama

Send document from template

send_template
DestructiveIdempotent

Sends a real, legally binding document by email from a template. There is no test mode, and a send cannot be undone. Generate request_id once per send and reuse it on every retry. Returns the document's id, status, and link, and each recipient's status.

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>",
      "request_id": "<request_id>"
    },
    "name": "send_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoExtra people who get a copy once the document is complete.
titleNoThe document title. Defaults to the template's title.
messageNoA personal note in the invitation.
recipientsYesOne entry for every role from get_template, each role exactly once: its role_id and the person's email.
request_idYesA unique key you make once for this send, such as a UUID. Reuse it on every retry so the document is sent only once.
external_idNoYour own reference for this document, in printable ASCII. It is not required to be unique.
template_idYesThe template's id, from search_templates.
prefilled_valuesNoValues for the template's prefilled fields, keyed by field label.
automatic_remindersNoAutomatic reminders until the document is signed. On by default; set false only if the user asks for no reminders.

Output Schema

NameRequiredDescriptionDefault
documentYes
recipientsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / recipients / description
      Added value: +"One entry for every role from get_template, each role exactly once: its role_id and the person's email."
    • addedInput schema / properties / request_id / description
      Added value: +"A unique key you make once for this send, such as a UUID. Reuse it on every retry so the document is sent only once."
    • changedInput schema / properties / template_id / description
      Previous value: -"The template to send."New value: +"The template's id, from search_templates."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "document": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "app_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "completed_at": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "created_at": {
      +          "format": "date-time",
      +          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +          "type": "string"
      +        },
      +        "id": {
      +          "format": "uuid",
      +          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +          "type": "string"
      +        },
      +        "recipients": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "email": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "invite_delivery": {
      +                "anyOf": [
      +                  {
      +                    "enum": [
      +                      "pending",
      +                      "sending",
      +                      "sent",
      +                      "failed",
      +                      "bounced",
      +                      "complained",
      +                      "suppressed"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "role": {
      +                "enum": [
      +                  "signer",
      +                  "cc"
      +                ],
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "pending",
      +                  "viewed",
      +                  "signed",
      +                  "declined"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "name",
      +              "email",
      +              "role",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "review_url": {
      +          "format": "uri",
      +          "type": "string"
      +        },
      +        "sent_at": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "status": {
      +          "enum": [
      +            "draft",
      +            "sent",
      +            "completed",
      +            "declined",
      +            "voided"
      +          ],
      +          "type": "string"
      +        },
      +        "title": {
      +          "type": "string"
      +        },
      +        "voided_at": {
      +          "anyOf": [
      +            {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "status",
      +        "app_url"
      +      ],
      +      "type": "object"
      +    },
      +    "recipients": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "email": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "role": {
      +            "enum": [
      +              "signer",
      +              "cc"
      +            ],
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "pending",
      +              "viewed",
      +              "signed",
      +              "declined"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "email",
      +          "role",
      +          "status"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "document"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes further: it discloses there is no test/sandbox mode, that a send is irreversible, and the retry contract for request_id to avoid duplicate sends. It also previews the response shape (document id, status, link, per-recipient status), which is meaningful context for a high-stakes write.

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?

Four short sentences, front-loaded with the irreversible-send warning before the mechanics. No filler, though the return-value sentence is somewhat redundant given an output schema exists.

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

Completeness4/5

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

Covers the essentials for a destructive, high-stakes send tool: irreversibility, no test mode, idempotency discipline, and result shape. Prerequisites (e.g., whether a document must be prepared first, permission requirements, partial-recipient failure behavior) are left unstated.

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 description coverage is 100%, so the parameters (including role_id sourcing via GET /templates/{id} and recipient/role pairing) are already documented. The description's request_id retry guidance largely restates the schema's own wording, adding little new parameter meaning.

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?

Specific verb and resource: 'Sends a real, legally binding document by email from a template,' which an agent can separate from prepare/draft-oriented siblings. It stops short of naming the prepare-then-send alternative explicitly, so differentiation is inferred 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 Guidelines3/5

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

Gives operative constraints (no test mode, irreversible, reuse request_id on retries) that shape how to call it, but never says when to choose this over prepare_document_from_template, send_reminder, or other siblings. Usage is implied by the stakes rather than spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.