Skip to main content
Glama

cancel_cart

Permanently delete a cart by cart_id. Use when the customer abandons the session or wants to start over. Has no effect on any checkout or paid order already created from this cart. Irreversible — create a new cart to restart.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cart_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries full burden and does well: it discloses permanence ('Permanently delete', 'Irreversible'), side-effect isolation ('Has no effect on any checkout or paid order'), and recovery path ('create a new cart to restart'). This goes well beyond basic delete semantics.

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?

Three sentences, each purposeful: action, usage context, and side-effect/irreversibility caveat. No filler or redundant phrasing, and the key action is front-loaded.

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?

Given the tool's simplicity (one required parameter, no output schema), the description covers purpose, usage, behavior, and irreversibility. It is sufficient for an agent to correctly select and invoke the tool without additional context.

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 the description only mentions cart_id in passing ('by cart_id'). It adds that cart_id identifies the target cart, but does not specify format, source, or validation. For a single simple parameter, this is adequate but not compensatory enough for a higher score.

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 clearly states 'Permanently delete a cart by cart_id' with a specific verb and resource. It distinguishes from siblings like cancel_checkout by focusing on cart deletion, and the 'permanently' modifier sets clear expectations of destructive action.

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 explicitly states when to use it: 'Use when the customer abandons the session or wants to start over.' It also clarifies a boundary ('Has no effect on any checkout or paid order'), but does not explicitly name alternative tools like cancel_checkout for checkout-related cancellations, so it falls just short of a full 5.

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