Skip to main content
Glama

Update Draft Fields

update_draft
DestructiveIdempotent

Replace the fields on an unsent Draft. No credit debit, no invites. fields is a whole-list replace: [{type, party, name?, required, position: {page_number, x, y, width, height}}]. Text fields may also carry default_value (prefilled for the signer, who can edit it) and locked=true (signer cannot edit; needs default_value; not allowed on semantic_type "full_name"). 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>",
      "fields": "<fields>"
    },
    "name": "update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYes
document_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true), the description discloses economically important side effects ('No credit debit, no invites'), the destructive whole-list replace semantics that justify destructiveHint, field-level constraints (locked requires default_value, disallowed on semantic_type 'full_name'), and the bearer-token auth requirement. Nothing here conflicts with the annotations.

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 the two highest-value caveats (no credits, no invites) before the schema expansion. It is dense but every clause adds information; the backticked pseudo-schema is compact and readable rather than wasteful.

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 two-parameter mutation with an output schema present and full annotation coverage, the description covers purpose, side effects, field semantics, and auth. It doesn't cover failure modes (e.g. what happens if the draft has already been sent) or whether replacing fields invalidates prior recipients, which keeps it from being fully complete.

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, the description carries the full semantic load and largely delivers: it expands the `fields` item shape (type, party, name?, required, position with page_number/x/y/width/height), explains default_value and locked behavior, and gives a cross-parameter constraint. Gaps remain for `document_id` (undocumented, though self-evident) and for allowed values of `type` and `party`.

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?

States a specific verb and resource ('Replace the fields on an unsent Draft'), which lets an agent distinguish this from sibling mutations like send_draft, delete_draft, or revise_envelope. It stops short of naming any sibling explicitly, so the differentiation relies on the reader inferring 'unsent Draft' excludes sent 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?

The qualifier 'on an unsent Draft' gives a clear precondition for when this tool applies, implicitly excluding already-sent envelopes. It never names the alternative to use for a sent envelope (e.g. revise_envelope) and states no explicit exclusions or prerequisites beyond the auth requirement.

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