Skip to main content
Glama

Prepare: take money out of the trade account

account_withdraw
Read-onlyIdempotent

Unsigned transaction taking money out of the trade account: USDG (the default), a stock by its ticker or any token by its address, an amount or all: true. The owner can send it to any address (default the owner) at any time, whatever the account holds open; the agent can send it to the owner alone. Simulated from the 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": {
      "wallet": "<wallet>"
    },
    "name": "account_withdraw"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoWhere it goes (default the owner; the agent may send to the owner alone)
allNoEverything the account holds of it
tokenNoUSDG (default), a stock's ticker, or a token's address
amountNoHow much to take out, in whole units as a decimal string, like "1.5"
walletYesThe wallet's address (0x...); the transactions are built for it to sign
accountNoA trade account's address (default: the wallet's own, as its owner; an agent gives its owner's account)

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?

Goes meaningfully beyond the annotations: the annotations only say readOnly/idempotent/non-destructive, while the description explains this is a *prepare* step producing an unsigned transaction, that it is simulated from the wallet, and that sending rights differ for owner vs agent. It does not explain what happens after (signing/broadcast) or failure modes, which keeps it at 4.

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?

Two sentences, front-loaded with the core action, and every clause carries information (asset forms, amount vs all, permission split, simulation note). The first sentence is dense and slightly run-on with colon-separated lists, but nothing is wasted.

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 6-parameter mutation-preparation tool with no output schema, it covers the important things: what is produced (an unsigned transaction), what it acts on, and who may send where. The gap is the post-call contract — what the returned transaction looks like and that it must be signed and submitted — which is only hinted at via the `wallet` schema text.

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 coverage is 100%, so the schema already documents every parameter, and the description largely restates it (USDG default, 'all: true', 'to' defaults to the owner). The only genuine addition is the owner-vs-agent routing permission attached to `to`. Baseline 3 is appropriate.

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 concrete verb + resource: it builds an unsigned transaction that takes money out of a trade account, and names the asset forms (USDG default, ticker, token address). The 'trade account' scoping implicitly separates it from the plain `withdraw`/`farm_withdraw` siblings, but it never names them, so the distinction stays implicit rather than explicit.

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?

The description conveys the permission model (owner may send anywhere, agent only to the owner) which implicitly tells an agent whether this call is viable, but it gives no explicit when-to-use/when-not and never mentions alternatives like `withdraw`, `withdraw_cover`, or `account_status` for checking balances first. Usage is implied from context rather than stated.

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