Skip to main content
Glama

Send From Template

send_from_template
Destructive

Create and immediately send a new envelope from a saved template. Get template_id and roles from list_templates. Supply at least one recipient, e.g. [{"name": "...", "email": "...", "role": "signer"}], covering the template's field roles. Use role_mapping to rename template roles to recipient roles, e.g. {"customer": "client"}; unmapped roles stay unchanged. Use send_envelope for new PDF files, send_draft for an existing draft, or add_document_to_draft(template_id=...) to append to an existing draft without sending.

The template is unchanged. A successful send normally costs 1 credit
and sends invitations unless send_invite=false. Set
send_completion_email=false separately to suppress signer completion
emails. sequential defaults true (one at a time). prefill =
{"party:name": "text"} overrides text defaults for this send only.
metadata.revision_of may name a changes-requested source document_id for
its one-time free resend while the promotion is enabled.

If sending fails after the draft is created, the error includes draft_id.
The draft does not store recipients or send options. To retry without
creating a second draft, call send_draft with document_id=draft_id and
supply recipients and any send options again. Requires envelopes:send
access.

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": "send_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
prefillNo
metadataNo
recipientsYes
sequentialNo
send_inviteNo
template_idYes
role_mappingNo
send_completion_emailNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / prefill
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Prefill"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and non-idempotent, so the safety bar is already set; the description still adds substantial context beyond that: the template is left unchanged, a send normally costs 1 credit, invitations go out unless send_invite=false, completion emails are controlled separately, and envelopes:send access is required. The failure path is disclosed too — a post-draft error returns draft_id, the draft stores neither recipients nor send options, and retry must go through send_draft with document_id=draft_id.

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?

Purpose is front-loaded in the first sentence and the sibling routing follows immediately, so the reader gets the essentials before the operational detail. The credit/invite/prefill sentences are dense but each carries distinct information; the closing error-recovery paragraph is the longest stretch and could be tightened slightly without losing meaning.

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

Completeness5/5

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

For a 9-parameter, credit-consuming, destructive send operation, the description covers prerequisites, cost, template immutability, per-call overrides, failure semantics, and the exact retry path. An output schema exists, so return-value explanation is not required, and nothing an agent needs in order to call this correctly or recover from an error is missing.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the burden for 9 parameters, and it does most of the work: recipient object shape with a worked example, role_mapping rename semantics with an example and the note that unmapped roles stay unchanged, send_invite, send_completion_email, sequential's default, prefill's {"party:name": "text"} form, and metadata.revision_of's free-resend behavior. The only gap is the top-level `name` parameter, which is never explained.

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

Purpose5/5

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

Opens with a concrete verb-and-resource pair: create and immediately send an envelope from a saved template. The subsequent clauses make clear it is instantiated from a template rather than a PDF, distinguishing it from send_envelope and send_draft by name.

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

Usage Guidelines5/5

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

Explicitly routes the agent: get template_id and roles from list_templates, use send_envelope for new PDFs, send_draft for an existing draft, and add_document_to_draft(template_id=...) to append without sending. These are concrete when-to-use and when-not-to-use rules naming the alternatives directly.

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.

Resources