Skip to main content
Glama

prepare_withdraw

Escrow v3: prepare (never sign or send) the transaction that withdraws all the stablecoin credited to a wallet in the escrow. It must be sent from that wallet; the funds go to "to" (default: the same wallet).

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": {
      "walletAddress": "<walletAddress>"
    },
    "name": "prepare_withdraw"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoWhere the funds go. Default: walletAddress
chainIdNo
walletAddressYesWallet with the credited balance; it sends the transaction

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it declares the tool only prepares an unsigned transaction ('never sign or send'), names the required sender, and discloses that the withdrawal is all-or-nothing to the destination. It omits failure behavior when nothing is credited and what the prepared payload looks like.

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?

Two tight sentences with the safety constraint front-loaded inside the first clause and the destination default trailing. No filler and nothing buried.

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 transaction-preparing tool with no annotations and no output schema, the description covers safety and destination semantics well, but leaves the agent guessing about chainId selection, the shape of the returned unsigned transaction, and behavior when the balance is zero.

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?

At 67% schema coverage, two of three parameters are documented in the schema and the description largely restates the 'to' default while reinforcing that walletAddress is the sender. chainId is never explained in either schema description or the tool description, which matters for a multi-chain escrow call.

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: prepare (not sign or send) the transaction that withdraws all credited stablecoin from an escrow wallet. The scope is unambiguous and the 'Escrow v3' prefix situates it. It does not, however, name the sibling read tool (get_withdrawable) that answers the related balance question, so sibling differentiation is only partial.

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?

'It must be sent from that wallet' and the 'withdraws all' framing imply constraints on when and how to call it, and 'default: the same wallet' sets the fallback. But there is no explicit when-to-use versus get_withdrawable, no prerequisite check (e.g. verify a withdrawable balance first), and no exclusion 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.