Skip to main content
Glama

Revise Envelope

revise_envelope
Destructive

Copy an envelope the signer requested changes on into a new unsent Draft: same documents, fields, recipients and public metadata, plus metadata.revision_of set to the source document_id. Wraps POST /api/v1/documents/{document_id}/revise. Costs no credit. Read the signer's comments with get_envelope_status, edit the Draft with update_draft / add_document_to_draft, then call send_draft(document_id=<the new draft's document_id>): revision_of is carried, so the first qualifying revision is free while the promotion is enabled. Errors: 404 if the envelope is missing or in another org; 409 not_changes_requested unless its newest session was declined with a change request. Not idempotent: each call creates another Draft. Requires Authorization: Bearer zs_....

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": {
      "document_id": "<document_id>"
    },
    "name": "revise_envelope"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

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: cost (no credit charged), the revision_of promotion rule, non-idempotency consequences (each call creates another Draft), auth header requirement, and specific 404/409 error semantics. The non-idempotent claim is consistent with idempotentHint=false and the draft-creating behavior is consistent with destructiveHint=true.

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 with the core action and result, then the workflow, then errors and auth. Dense but nearly every clause carries operational value; the parenthetical send_draft call and the promotion clause make the final sentences slightly overloaded.

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 one-parameter but behaviorally complex mutation tool, the description covers preconditions, side effects, cost, auth, error cases and the follow-up workflow; return values are covered by the output schema, 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?

The single parameter is undocumented in the schema (0% coverage), and the description compensates by clarifying that document_id refers to the source envelope and by explicitly contrasting it with the new draft's document_id used in send_draft. That distinction is exactly the confusion an agent would otherwise hit, though it could state the ID format more directly.

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?

States a specific verb (copy/revise) and resource (envelope with signer-requested changes) and precisely describes the resulting artifact: an unsent Draft with the same documents, fields, recipients and public metadata, plus metadata.revision_of. It also names the underlying endpoint, so an agent can distinguish it from update_draft or send_draft without opening a 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?

Gives an explicit end-to-end workflow (read comments with get_envelope_status, edit with update_draft / add_document_to_draft, then send_draft with the new draft's document_id) and the exact precondition for use: the newest session must have been declined with a change request, otherwise 409 not_changes_requested. It also names the mechanism by which the first revision is free.

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