Skip to main content
Glama

Coil Scanner

update_cart_item

Idempotent

Storefront: set a line's quantity (0 removes; anything above 1 is held at 1).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quantityYes
product_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior1/5

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

The annotations declare destructiveHint=false, meaning only additive updates, but the description explicitly says setting quantity to 0 removes the line item. Removal is a destructive update, so the description directly contradicts the structured annotation. Per the rubric, this is an annotation contradiction.

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?

A single front-loaded sentence with no filler. The critical edge-case behavior is stated immediately, making it easy to parse and act on.

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 simple two-parameter cart update with full annotation coverage, the description covers the most important behavioral surprise (quantity clamping/removal). It omits product_id format details and any mention of return values, but no output schema exists and the core behavior is covered.

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 description coverage is 0%, so the description must compensate. It explains the quantity parameter's semantics well (0 removes, values >1 are held at 1), but it does not describe the product_id parameter beyond implying it identifies a cart line.

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 names a specific verb+resource ('set a line's quantity') and clarifies the tool's scope as a storefront cart update. It does not explicitly differentiate from sibling tools like remove_from_cart or add_to_cart despite the overlap created by the '0 removes' behavior.

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?

The edge-case behavior ('0 removes; anything above 1 is held at 1') implies how the tool is used, but no explicit when-to-use or when-not-to-use guidance is given. It does not name alternatives or say when to prefer remove_from_cart instead.

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