cancel_order
Delete/cancel an order by id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes |
Delete/cancel an order by id.
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are present, so the description must disclose behavioral traits. It states the tool deletes/cancels, implying destruction, but does not clarify if this is a hard or soft delete, whether reversal is possible, or what side effects (e.g., on linked records) occur. For a destructive action, this is insufficient.
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, front-loaded sentence with no extraneous words. It is concise but could include more detail (e.g., behavioral notes) without becoming verbose. The structure is clear and direct.
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?
Despite the tool's simplicity (one parameter), the description lacks key context for a destructive operation, such as irreversibility, confirmation requirements, or impact on related data. Given the sibling list, no guidance on when to cancel vs update status further undermines completeness.
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 0%, so the description needs to compensate. It mentions 'by id' but does not explain what 'order_id' represents, its format, or any constraints. The value added beyond the parameter name is minimal.
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?
The description clearly states the action 'Delete/cancel' and the resource 'order', with the identifier 'by id'. This is specific and distinguishes the tool from siblings like 'update_order_status' or 'get_order', though it does not explicitly call out differences.
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?
There is no guidance on when to use this tool versus alternatives (e.g., 'update_order_status' for non-deletion changes, or 'create_order' for new orders). No prerequisites, conditions, or when-not-to-use information is provided.
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.