Skip to main content
Glama

Signing for agents

download_document

Download a PDF of an envelope: the signed document (once COMPLETED), the original, the signing certificate or the audit log. Returned as an embedded PDF resource.

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": {
      "envelope_id": "<envelope_id>"
    },
    "name": "download_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
whichNosigned
envelope_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the disclosure burden. It usefully states that the result is an embedded PDF resource and that signed documents require COMPLETED status, but it does not state permissions, failure modes, or whether the operation has any side effects.

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

Conciseness5/5

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

The description is compact and front-loaded: it states the action and resource first, then lists the variants and return form. Every phrase contributes useful meaning without repetition.

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?

For a simple two-parameter download tool with no output schema, the description covers purpose, valid document types, the signed-document precondition, and return format. It still omits authorization and error behavior, but the core invocation information is present.

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 0%, so the description must compensate. It explains the enum choices for 'which' well, including the completed-envelope condition for 'signed,' but it adds no detail about envelope_id beyond being the envelope to download.

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?

The description uses a specific verb and resource: 'Download a PDF of an envelope,' and enumerates the exact document variants available. This clearly distinguishes it from metadata-oriented siblings such as get_envelope or list_envelopes.

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?

It gives clear context for each document type and explicitly notes that the signed document is available only once the envelope is COMPLETED. It does not name alternatives or exclusions versus get_envelope or other siblings, so it falls short of full when-to-use guidance.

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