Skip to main content
Glama

Remove cart item

zoodex_cart_remove_item
Destructive

Removes a single item from a cart using either a product cart ID or variety ID, so you can correct or update an order before checkout.

Instructions

Remove one line from the cart (by product_cart_id or variety_id).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zoodex_cart_remove_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
variety_idNo
product_cart_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

The annotations already declare this as destructive and not read-only, so the safety profile is covered. The description adds that removal is limited to one line and that either identifier can target it. It does not disclose edge-case behavior such as precedence when both identifiers are provided or errors when neither is provided.

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 definition is a single compact sentence with no wasted wording. The action and identifier options are front-loaded.

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

Completeness2/5

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

For a destructive cart mutation with two optional parameters and no output schema, the description is too thin. It leaves important gaps around required inputs, authentication or cart-state prerequisites, and what happens when both or neither identifier is provided.

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?

Schema description coverage is 0%, so the description must carry the parameter meaning. It names both parameters and presents them as alternatives, but does not explain what each identifier represents, whether one is required, or how conflicts are resolved.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: removing one line from the cart. It also identifies the two supported line identifiers. It does not explicitly distinguish this tool from sibling removals such as removing a vendor or clearing the cart, but 'one line' provides useful scope.

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

Usage Guidelines2/5

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

The description implies the basic use case of removing a cart line, but gives no guidance on when to use this instead of clearing the cart or removing a vendor's items. It also does not say when to use product_cart_id versus variety_id, or what to do if both or neither are supplied.

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