Skip to main content
Glama

Cancel an order

cancel_order
Destructive

Cancels one of the customer's IMPOSSIBREW orders that has not left the warehouse, with the refund the AI Brewer states. This tool makes no other change. The AI Brewer shows the exact change and makes it only after the customer replies yes. The message goes to the AI Brewer, the same assistant as on impossibrew.co.uk, which checks identity (email plus delivery postcode, or an order number starting EC plus either). message is the customer's own words. The first call has no conversationId; each result returns the conversationId that continues the same conversation across these order tools. The reply is the AI Brewer's complete answer.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>"
    },
    "name": "cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYes
conversationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds substantial context beyond them: the mutation is scoped to a single refunded cancellation with "no other change," identity is verified via email plus postcode or an EC-prefixed order number, and the change is gated on explicit customer confirmation. It also discloses conversational state handling, which the annotations do not cover.

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?

Purpose and scope are front-loaded in the first sentence, and every subsequent sentence carries operational information. A few passages are dense or repeated in spirit (the AI Brewer's role and confirmation flow are restated), which costs a little tightness but nothing is truly filler.

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

Completeness5/5

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

For a destructive, open-world tool with no output schema and two undocumented parameters, the description covers what an agent needs: preconditions, refund behavior, identity requirement, confirmation gate, conversation chaining, and what the reply contains. Nothing material is left to inference.

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

Parameters4/5

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

With 0% schema description coverage, the description carries the burden and does so for both parameters: message is defined as the customer's own words (free text, not a structured order reference), and conversationId is explained as absent on the first call and returned by each result to continue the same conversation. It omits the message length ceiling and the conversationId format constraint, which the schema enforces but never explains.

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?

States a specific verb and resource ("Cancels one of the customer's IMPOSSIBREW orders") plus the governing precondition ("has not left the warehouse") and the refund semantics. The order-vs-subscription distinction is clear enough that an agent can separate it from cancel_subscription without opening either schema.

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 gives a concrete applicability condition (order must not have shipped) and an enforced interaction protocol (change is applied only after the customer replies "yes"). It stops short of naming a sibling alternative or stating what to do when the order has already shipped, so the routing guidance is clear but not exhaustive.

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