Skip to main content
Glama

Request order cancellation

orders_request_cancellation
DestructiveIdempotent

Request cancellation and any applicable refund only after confirming the exact current order total and currency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdYes
confirmedYes
expectedTotalMinorYes
expectedCurrencyCodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds the guardrail premise (verify current total/currency before acting) but does not say what the cancellation actually destroys, whether the refund is immediate or pending, or what happens on a failed verification. No contradiction with annotations.

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?

A single front-loaded sentence with no filler; the precondition is embedded where it is needed. It earns its place, though for a destructive financial action the sentence is arguably compressed to the point of omitting consequential detail rather than being optimally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world mutation with no output schema and 0% schema coverage, the description is thin. It never clarifies what 'request' means operationally (immediate vs pending approval), what the refund outcome is, whether the operation can be retried safely, or how failures surface — all of which an agent needs before invoking it.

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 0% and all four parameters are required, so the description carries the burden. It implicitly explains the intent of expectedTotalMinor and expectedCurrencyCode as stale-price guard rails ('confirming the exact current order total and currency'), which is useful. But orderId and the confirmed=true const are never addressed, leaving half the surface undocumented.

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 specific verb and resource ('Request cancellation') plus the adjacent refund action, which is more than a restatement of the title. It is clearly distinguishable from every sibling, none of which handle order cancellation. It stops short of 5 only because it never names an alternative tool or scope boundary.

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?

Gives one real precondition — confirm the exact current order total and currency first — which is genuine usage guidance. However, it offers no when-not-to-use case, no mention of the pending nature of a 'request', and no routing to siblings such as orders_decide_replacement for related post-purchase flows.

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