Skip to main content
Glama

Confirm or cancel a proposed trade

confirm_trade
Destructive

Execute or cancel a previously proposed trade (requires the api:trade scope). REAL MONEY: decision=execute places a market order from the user's agent wallet. You MUST present the full proposal preview to the human user and obtain their explicit approval BEFORE calling this tool — NEVER call confirm_trade autonomously, and NEVER chain it automatically after propose_trade. For decision=execute, asset, side, and size_usd are required and must match the proposal's confirm_echo exactly — an integrity check that this confirmation refers to the trade the human approved (a mismatch 409s naming the field). decision=cancel needs no echo fields. Expired proposals 410 (re-propose for fresh numbers); a moved market 409s with price_drift and requires a fresh propose→approve round.

Input Schema

NameRequiredDescriptionDefault
sideNoREQUIRED for execute — echo confirm_echo.side
assetNoREQUIRED for execute — echo confirm_echo.asset
decisionYes
size_usdNoREQUIRED for execute — echo confirm_echo.size_usd
proposal_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, but the description adds far more: REAL MONEY, a market order from the user's agent wallet, the required api:trade scope, and the specific failure modes (409 naming a mismatched field, 410 for expired proposals, 409 with price_drift for a moved market). This is materially beyond what structured fields convey.

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?

Front-loaded with the action, then the money/safety warning, then the parameter rules and error behavior. Dense but every clause carries operational information; no filler or restated title language.

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 destructive, non-idempotent real-money tool the description covers preconditions, scope, integrity checks and error codes thoroughly. The only gap is the success side — no hint about what comes back (order id, fill status), which matters somewhat since there is no output schema, though error handling is what an agent most needs here.

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

Parameters5/5

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

Schema coverage is only 60% and the schema only says 'REQUIRED for execute — echo confirm_echo.X'; the description explains the integrity-check mechanism, that the echo must match the proposal exactly, that mismatches 409 naming the field, and that cancel needs none of these fields. That is real semantic value over the schema.

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 pair (execute/cancel) applied to a specific resource ('a previously proposed trade'), which cleanly separates it from propose_trade and propose_stock_order/confirm_stock_order in the sibling list. An agent knows exactly what this tool does without opening the 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 explicit when-to-use ('after a human approves a proposal'), explicit when-not ('NEVER call confirm_trade autonomously, and NEVER chain it automatically after propose_trade'), and a hard precondition (present the full preview and obtain explicit approval). The decision=cancel branch is also distinguished ('needs no echo fields').

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