Withdraw an unpaid order
withdraw_orderWithdraws an order that has not been paid yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The order's id, from my_orders |
withdraw_orderWithdraws an order that has not been paid yet.
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The order's id, from my_orders |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the agent knows this is a destructive, repeatable mutation. The description adds the unpaid-order precondition, which is useful gating context, but says nothing about what withdrawal actually does (void vs. delete), whether it is reversible, or what error occurs if the order is already paid.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single short sentence with the precondition front-loaded; nothing is wasted. It is efficient but minimal — there is no second sentence that would carry the behavioral detail the tool needs.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a destructive mutation with no output schema, the description covers the eligible state but omits outcome and failure semantics (irreversibility, already-paid behavior, what the caller gets back). Annotations carry the safety profile, so this is thin but not unusable.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% and the schema already explains order_id comes from my_orders. The description adds no additional meaning about the identifier's format or sourcing, so the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (withdraws) and resource (order) plus a key scope condition: the order must not have been paid yet. That condition meaningfully separates it from pay_order, but the description never names the sibling or the my_orders lookup that supplies order_id.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The precondition "has not been paid yet" implies when the tool is applicable, but there is no explicit when-to-use/when-not-to-use guidance and no named alternative for orders that are already paid (e.g., a refund or dispute path among the siblings).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.