Skip to main content
Glama
NyokolodiK

ecommerce-mcp

by NyokolodiK

remove_cart_item

Remove a specific product from a shopping cart entirely. Provide the cart ID and product ID to delete the item line.

Instructions

Remove a product line from a cart entirely.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cart_idYesUnique cart identifier.
product_idYesNumeric product identifier.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNoLine items currently in the cart.
cart_idYesUnique cart identifier.
created_atYesUTC timestamp of cart creation.
updated_atYesUTC timestamp of the last modification.
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses that the tool removes a product line, but does not mention side effects on cart totals, idempotency, error handling, or required permissions. The word 'entirely' adds minimal behavioral context but is insufficient for a mutation tool.

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 a single, direct sentence that is front-loaded with the verb and resource. It contains no extraneous words and is appropriately sized for the tool's simplicity.

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

Completeness3/5

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

For a simple two-parameter removal operation, the description states the essential action. However, it lacks context about whether the cart or product must exist, what happens on failure, or how the response appears. The existence of an output schema mitigates the need to explain return values, but the description is still minimal.

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?

The input schema already provides clear descriptions for both cart_id and product_id (100% coverage). The description adds no additional parameter-specific meaning beyond what the schema gives, so it meets the baseline.

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 the action (remove) and the resource (a product line from a cart). The word 'entirely' distinguishes it from tools like update_cart_item, making the purpose unambiguous.

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

Usage Guidelines3/5

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

No explicit guidance is provided about when to use this tool versus alternatives like update_cart_item. The intended use is implied by the action, but there are no exclusions, prerequisites, or mention of sibling tools.

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/NyokolodiK/ecommerce-mcp'

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