Skip to main content
Glama

Send Envelope for Signature

send_envelope
Destructive

Create a new envelope from PDF files. Use send_draft for an existing draft or send_from_template for a saved template. For one PDF, provide either document_base64 or a public HTTPS document_url (max 10MB).

By default (auto_send=true), send immediately for legally binding signature. An immediate send normally costs 1 credit and requires recipients, e.g. [{"name": "...", "email": "...", "role": "signer"}]. Match recipient roles to the signing-field parties. Set send_invite=false to suppress invitations; signing links are still returned. Set send_completion_email=false separately to suppress signer completion emails. Poll get_envelope_status for progress.

Set draft=true or auto_send=false to save without sending. recipients are optional in draft mode; no credits are debited and no invitations go out. draft=true takes precedence. Use the returned document_id with send_draft when ready, or send from the dashboard.

Immediate send: the PDF is REJECTED unless it contains signing-field placeholder tags. For an untagged PDF (no zSign field tags), call prepare_document first to place the fields, call it again with that prepare_id and approve true when the response has no PDF, then send the pdf_base64 it returns as document_base64. Draft mode accepts an untagged PDF (human places fields) or optional fields. zSign field placeholder syntax:

  • Format: {type:party:name} -- add * after the type to mark the field required, e.g. {signature*:signer}

  • On upload, a tag or PDF form field with no explicit required marker is required when the account's fields_required_by_default is true (the default) and optional when it is false; a * is always required. A JSON field list stores the required boolean you send (default false) and does not apply this setting.

  • Types: signature, initials, text, date, radio

  • party must exactly match the recipient's "role" value passed when sending (MCP default role is "signer")

  • name is optional for signature/initials/date and REQUIRED for text fields; letters, digits, and underscores only

  • radio fields take FOUR parts: {radio:party:group:option}. Every tag sharing a party and group forms one exclusive set -- the signer picks exactly one, and the chosen option is the value reported back. Mark the set required with {radio*:...} on any of its tags. group is letters/digits/underscores; option may also contain spaces and hyphens

  • radio tags must be visible text in the PDF body -- they cannot be the name of a PDF form field

  • The signer sees each radio option's value as the caption beside its button, but the completed document only marks the chosen button -- print your own label next to each radio tag so the executed copy shows what each button means

  • Keep each tag on a single line in a standard font -- a tag split across lines is not detected

  • The tag's position in the document becomes the field's position; the signed value is drawn over it, and the tag itself is deleted when you upload -- signers never see it, and it is not in the completed document

  • Tags can be visible text in the PDF body, or the name of a PDF form field / annotation (except radio, which must be visible text) Examples: {signature*:signer}, {initials:signer}, {text*:signer:full_name}, {date:signer:signed_on} Radio (visible text only): {radio*:signer:plan:Option 1}, {radio*:signer:plan:Option 2} Sample PDF: https://storage.googleapis.com/zsign-public/simple_contract_1.pdf Docs: https://zsign.io/docs/api

metadata is an optional flat object of string keys/values (max 50 keys) echoed back in every webhook for this envelope -- use it to carry your own record ids. Set revision_of to the source document_id to use its one-time free resend after changes are requested while the promotion is enabled.

sequential (default true): recipients sign one at a time in list order. Set false so everyone can sign at once. Same flag as REST POST /api/v1/documents/send sequential.

documents: list of {filename, document_base64 | document_url, name?} to send several PDFs as ONE envelope (one credit, shared recipients, one signing link per signer; at most 10). Mutually exclusive with document_base64/document_url. An encrypted or password-protected PDF is a 422 with code pdf_encrypted and is not charged. Requires envelopes:send access.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "send_envelope"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
draftNo
fieldsNo
prefillNo
filenameNodocument.pdf
metadataNo
auto_sendNo
documentsNo
recipientsNo
sequentialNo
send_inviteNo
document_urlNo
document_base64No
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. Changed1 schema field changed
    • addedInput schema / properties / documents
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Documents"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / sequential
      Added value: +{
      +  "default": true,
      +  "title": "Sequential",
      +  "type": "boolean"
      +}
  4. Changed8 schema fields changed
    • addedInput schema / properties / auto_send
      Added value: +{
      +  "default": true,
      +  "title": "Auto Send",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / draft
      Added value: +{
      +  "default": false,
      +  "title": "Draft",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / fields
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Fields"
      +}
    • addedInput schema / properties / recipients / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / recipients / default
      Added value: +null
    • removedInput schema / properties / recipients / items
      Removed value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}
    • removedInput schema / properties / recipients / type
      Removed value: -"array"
    • removedInput schema / required
      Removed value: -[
      -  "recipients"
      -]
  5. Changed3 schema fields changed
    • addedInput schema / properties / metadata
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Metadata"
      +}
    • addedInput schema / properties / send_completion_email
      Added value: +{
      +  "default": true,
      +  "title": "Send Completion Email",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / send_invite
      Added value: +{
      +  "default": true,
      +  "title": "Send Invite",
      +  "type": "boolean"
      +}
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: 1-credit cost on immediate send, no credits debited in draft mode, hard rejection of untagged PDFs, encrypted PDFs returning 422 pdf_encrypted without charge, the requirement of envelopes:send access, and the 10MB/10-document caps. These are exactly the consequences an agent needs before committing an irreversible send.

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-loaded correctly with purpose and alternatives, then mode behavior, then the tag grammar, then advanced options. The tag-syntax bullets are long but each carries invocation-critical detail that cannot be inferred; the only real cost is bulk, which is justified for a 14-parameter tool with an arcane placeholder format.

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?

Covers cost, error codes, prerequisites, the prepare_document handoff, draft-vs-send tradeoffs, and what gets returned (document_id, signing links). Return values need no further explanation because an output schema exists, so nothing an agent needs to call this correctly 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?

With 0% schema description coverage across 14 parameters, the description carries the load and mostly succeeds: it explains document_base64 vs document_url (HTTPS, max 10MB), the documents list and its mutual exclusivity with the single-document params, recipients shape and role matching, auto_send/draft precedence, send_invite, send_completion_email, metadata (flat, max 50 keys, webhook echo), sequential, and revision_of. It leaves `name`, `filename`, and `prefill` entirely unexplained, which keeps it short of a 5.

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 specific verb+resource ('Create a new envelope from PDF files') and immediately distinguishes itself from two named siblings, send_draft and send_from_template. An agent can tell which tool to reach for without opening any schema.

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?

Explicit routing: use send_draft for an existing draft, send_from_template for a saved template, and prepare_document first when the PDF lacks zSign tags (with the precise re-call-with-prepare_id-and-approve-true sequence). It also states when to prefer draft mode over immediate send and when revision_of applies, so exclusions and alternatives are covered rather than implied.

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