Skip to main content
Glama

remove_cart_item

DestructiveIdempotent

Delete the complete basket line identified by this buyer's get_cart item_id; not product_id or a favorites entry. Use update_cart_item to retain the line with a smaller quantity. Returns the refreshed basket; no order or payment. OAuth scopes: cart:write. Changes buyer or order state.

Input Schema

NameRequiredDescriptionDefault
item_idYesBasket line item_id from this consenting buyer's get_cart response, not product_id or another buyer's item.

Output Schema

NameRequiredDescriptionDefault
emptyYes
itemsYes
currencyYes
subtotalYes
orderableYes
total_quantityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, idempotentHint=true and readOnlyHint=false, but the description adds real context beyond them: required OAuth scope (cart:write), the return payload (refreshed basket), and the explicit boundary that no order or payment occurs. That is meaningful behavioral disclosure for a destructive mutation.

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?

Tight, front-loaded, and every clause carries information: target, alternative, return value, scope, side effect. The telegraphic style ('no order or payment') is efficient though slightly clipped for readability.

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?

An output schema exists, so return shape need not be explained; the description still notes the refreshed basket is returned. With 100% param coverage, full annotations, and the auth scope supplied, an agent has everything needed to call this destructive delete correctly.

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 100% and the parameter description already says the value must come from this buyer's get_cart response and is not product_id or another buyer's item. The description's guidance restates that same disambiguation, adding emphasis rather than new meaning, so the baseline 3 applies.

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+resource (delete the complete basket line) and immediately scopes it to the get_cart item_id, explicitly excluding product_id and favorites entries. That exclusion routes the agent away from remove_favorite and makes the target unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the sibling alternative and the condition that selects it: 'Use update_cart_item to retain the line with a smaller quantity.' Combined with the item_id/product_id/favorites disambiguation, both when-to-use and when-not-to-use are explicit.

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