Skip to main content
Glama

Agentic Fabrication Network (AFN)

Take a part out of a cart

remove_from_cart
Destructive

Take one part out of a cart. The part's quote is untouched and can be put back with add_to_cart. Returns the whole cart. HOW A CART WORKS: each part in a cart IS a quote — its material, finish, quantity, rules and its pick (selection) live on that part's quote, and nothing is kept twice. To change a part, call refine_quote on its quote_id and pass cart_item_id: the cart follows the part to the new quote by itself. To pick the option to order for a part, store the pick on its quote (refine_quote selection). The cart_id is the only key to the cart — whoever holds it can read and change it — so give it only to the user it belongs to, and never put it in a link you did not get from the network.

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": {
      "cart_id": "<cart_id>",
      "item_id": "<item_id>"
    },
    "name": "remove_from_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_idYesThe cart (cart_…)
item_idYesThe part to take out — its item_id from the cart

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description adds real context beyond them: the underlying quote survives removal intact, the whole cart is returned, and the cart_id is a bearer key that grants read/change access to anyone holding it. That reversibility and auth/security warning materially change how an agent handles the call.

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?

The core action and its reversal are front-loaded in the first two sentences, and the cart-model explanation earns its place by tying removal to quote identity. The trailing note about links is somewhat tangential to invoking the tool and could be trimmed.

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 two-parameter mutation with no output schema, the description covers the return value (whole cart), reversibility, and the conceptual cart/quote relationship. It omits failure behavior (unknown or already-removed item_id) and any notion of ordering or limits on removal.

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?

Schema coverage is 100%, so both parameters are documented; the description still adds meaning about cart_id (the sole key, must not be shared or placed in unverified links) and clarifies item_id is the cart's item identifier. That is useful beyond the schema, though the mechanical meaning of each parameter is already covered.

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 opening sentence states a specific verb and resource ('Take one part out of a cart') and immediately distinguishes it from alternatives by noting the quote is untouched and reversible via add_to_cart. An agent can separate it from refine_quote and add_to_cart without opening a 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?

It routes the agent explicitly: use refine_quote with cart_item_id to change a part, and store the pick via refine_quote selection — making clear removal is for taking a part out, not editing it. It does not state when removal is inappropriate (e.g. mid-checkout) or what happens if the item_id is absent, which keeps it from a 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