remove_from_cart
Storefront: remove a line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes |
Storefront: remove a line.
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety and repeat-call profile is covered structurally. The description adds only the word "Storefront" as domain context and nothing about behavior: it does not say whether the whole line is removed or a single unit decremented, nor what happens when product_id is absent from the cart. For a mutation tool, that silence about the core effect is a real gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The single short sentence is front-loaded with the domain prefix and wastes no words. It is, however, so terse that it crosses from concise into under-specified, leaving the reader with almost no usable content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is structurally simple (one required string parameter, no output schema, no nested objects), and the annotations cover idempotency and non-destructiveness, so an agent can call it correctly. What remains missing is the effect semantics (full-line removal vs. decrement) and the not-found case, which for a cart mutation is worth stating.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description carries the full burden for the single product_id parameter, yet it only says "a line" without connecting that to the parameter or clarifying whether it identifies a product, a variant, or a cart line. Nothing is added beyond the schema's type declaration.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
"Storefront: remove a line" gives a verb (remove) and an implied resource (a cart line item), which the tool name remove_from_cart disambiguates. However, "line" is never defined as a cart line item, and nothing in the text distinguishes this from update_cart_item, which is the nearest sibling that also mutates cart contents. The purpose is inferable but not stated with precision.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this versus update_cart_item (which could set quantity to zero) or get_cart, and no statement of preconditions such as the item already being in the cart. The agent must infer usage entirely from the name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.