Skip to main content
Glama

replace_wallet_document

Destructive

Replace target.draftId's whole native document. Validates native schemas, bindings and classic Apple fallback, stores a private draft and refreshes its synthetic preview. Does not publish.

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": {
      "target": "<target>"
    },
    "name": "replace_wallet_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsNo
targetYes
versionNo
documentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations (destructive=true, readOnly=false, openWorld=false) the description discloses what actually happens: native schema/binding/classic-Apple-fallback validation, storage into a private draft, synthetic preview refresh, and no publish. That is genuinely useful operational context not present in the structured fields. It stops short of saying whether the previous document is recoverable after a destructive replace.

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?

Three tight sentences with the operation and its scope front-loaded, then side effects, then the explicit non-effect. Dense terms like 'synthetic preview' and 'classic Apple fallback' are unglossed, but no sentence is wasted.

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

Completeness3/5

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

For a destructive, nested-object mutation with no output schema and zero schema descriptions, the definition should cover version handling and edits semantics or at least the failure modes of validation. It covers side effects and the publish boundary well but leaves half the parameter surface unexplained.

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

Parameters2/5

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

Schema description coverage is 0% and there are four parameters inside a nested target object. The description only illuminates target.draftId and, implicitly, the document payload ('whole native document'); the edits array and version parameters receive no explanation at all, and the kind discriminator and version semantics are undocumented everywhere.

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?

The description names a specific verb and resource — 'Replace ... whole native document' — and scopes it to target.draftId, which implicitly contrasts it with the sibling edit_wallet_document (partial edit) and replace_page_document/replace_email_document (other resource types). It never names those siblings explicitly, so differentiation is inferable rather than stated.

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

Usage Guidelines3/5

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

'Does not publish' gestures at the publish_wallet_design boundary, but the agent is left to infer that this is the full-replacement alternative to edit_wallet_document and that a publish step is required afterwards. No explicit when-to-use or when-not-to-use statement is given.

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.