Skip to main content
Glama
anshux1

Shopping MCP Server

by anshux1

Cancel order

cancel_order

Cancel an order belonging to the authenticated user when it hasn't been cancelled yet, allowing you to manage or undo a purchase.

Instructions

Cancel an order belonging to the authenticated user when it has not already been cancelled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYesOrder ID to cancel
Install Server

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states the action and prerequisites, but does not mention side effects (e.g., order status changes to cancelled), error behavior for already-cancelled orders, or whether cancellation is reversible. This is a minimal viable description but not richly transparent.

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?

The description is a single concise sentence that front-loads the action and immediately follows with the key conditions. Every word earns its place, with no fluff or redundancy.

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 simple single-parameter tool with no output schema, the description covers the essential context: who can use it and when it applies. It does not specify the resulting state or error handling, but these are less critical for a straightforward cancel operation. Overall, it is sufficiently complete for an agent to call the tool correctly.

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?

The schema description coverage is 100%, so the parameter order_id is already documented as 'Order ID to cancel'. The description adds no additional semantics beyond restating the action. A baseline of 3 is appropriate because the schema already does the heavy lifting.

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?

The description states a clear verb ('Cancel') and resource ('an order'), and adds two important scoping conditions: it must belong to the authenticated user and must not already be cancelled. This distinguishes it from sibling tools like get_order or place_order, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear usage context: only cancel orders owned by the authenticated user and only when they are not already cancelled. It does not explicitly name alternatives or say when not to use this tool, but the conditions are sufficient for most agents to decide correctly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anshux1/amazon-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server