Skip to main content
Glama

Cancel Order

cancel_order
Destructive

Cancel an eligible customer order and send cancellation notices after signed-in browser approval.

Input Schema

NameRequiredDescriptionDefault
reasonYes
order_idYes
confirmation_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: only eligible orders, cancellation notices are dispatched (a downstream side effect), and signed-in browser approval is required. This complements destructiveHint/idempotentHint without contradicting them.

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, leading with the core action. It is efficient, though it could afford one more clause to clarify eligibility and confirmation_id.

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

Completeness3/5

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

The output schema removes the need to describe return values, and annotations cover the safety profile. Still, the description leaves 'eligible' undefined and says nothing about the three input parameters, which is a gap for a destructive, non-idempotent operation.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description carries the full burden, yet it explains none of them. 'signed-in browser approval' vaguely gestures at confirmation_id but never connects it, and reason/order_id are entirely undefined.

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 (cancel) and resource (customer order), plus the side effect of sending cancellation notices. It is distinguishable from siblings like cancel_payment_attempt, though it doesn't explicitly name an alternative.

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?

Implies usage conditions via 'eligible' and 'signed-in browser approval', giving some context for when this applies. However, it never defines eligibility, states prerequisites precisely, or points to alternative tools for ineligible cases.

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