Skip to main content
Glama

wafle_orders_cancel

DestructiveIdempotent

Cancel an order and issue a refund if supported. Restocks inventory and moves the order to cancelled status; requires user confirmation before running.

Instructions

Cancel an order. If the gateway supports auto-refund and the order was paid, wafle will trigger the refund.

Destructive: the order moves to cancelled and inventory is restocked. Confirm with the user before running.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesWafle store slug, e.g. 'gamerland' or 'lensitive'.
reasonNo
refundNoWhether to also issue a refund (if applicable).
order_idYes
Behavior5/5

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

Despite annotations already indicating destructive and idempotent behavior, the description goes beyond them by specifying that the order moves to 'cancelled', inventory is restocked, and the refund condition (gateway support and payment status). It also includes the crucial instruction to confirm with the user, providing rich behavioral context.

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 concise, with two sentences that each add essential information: the core action and the destructive consequences plus user confirmation. There is no waste or redundancy, and the structure is easy to parse.

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 destructive operation without an output schema, the description covers the key behavioral aspects, including cancellation, refund, inventory restock, and user confirmation. It does not explain return values or error cases, but given the side effects are clearly disclosed, it is reasonably complete.

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?

The schema covers only 2 of 4 parameters with descriptions, and the tool description does little to clarify the missing ones (reason, order_id). It indirectly explains the 'refund' parameter via the auto-refund note, but fails to add meaning for the other parameters, leaving gaps that the schema does not fill.

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 begins with 'Cancel an order,' a specific verb and resource, clearly distinguishing it from other order-related tools like wafle_orders_refund or wafle_checkout_order_refund. The extra detail about auto-refund further clarifies its unique role.

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 clearly implies the tool is for canceling orders, but it does not explicitly state when not to use it or mention alternatives. However, the context is unambiguous and the guidance to confirm with the user adds practical usage direction.

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

Install Server

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/the33warehouse-tech/wafle-mcp'

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