Skip to main content
Glama

Update cart item

suppco_update_cart_item
DestructiveIdempotent

Set the quantity of a product that is already in the signed-in user's cart. quantity is the new total, not an amount to add, so repeating the call is safe; 0 removes the item. If the product is in the cart as both a one-time purchase and a subscription, set subscription to choose which one to change. Returns the updated cart.

Input Schema

NameRequiredDescriptionDefault
quantityYesNew total number of units for this item. 0 removes it.
subscriptionNotrue to change the subscription item, false for the one-time item. Only needed when the product is in the cart as both.
product_id_or_slugYesSuppCo product ID (UUID) or slug of a product in the cart, as shown by suppco_get_my_cart.

Output Schema

NameRequiredDescriptionDefault
cartYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare idempotentHint, destructiveHint and openWorldHint, but the description adds genuine specifics beyond them: quantity is a new total rather than an increment (explaining why repeats are safe), and 0 is the destructive trigger that removes the item. It also notes the return value. Minor gap: no mention of auth requirements or what happens to a subscription item when quantity is set to 0.

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?

Three tight sentences, front-loaded with the core action, then the non-obvious semantics, then the conditional flag. Every sentence carries information an agent needs; nothing is padding.

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

Completeness5/5

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

With an output schema present and full annotation coverage, the description supplies exactly the missing pieces: set-vs-increment semantics, the destructive zero case, and the disambiguation flag. An agent has everything required to invoke this correctly.

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 100%, so the schema already documents all three parameters, including 'new total', '0 removes it', and the both-types condition for subscription. The description largely restates this at the prose level, adding the repeat-safety framing but no new syntax or format detail. Baseline 3 is appropriate.

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?

States a specific verb and resource with an explicit scope constraint: 'Set the quantity of a product that is already in the signed-in user's cart.' The 'already in the cart' qualifier immediately separates it from suppco_add_to_cart and suppco_remove_from_cart without needing to open either 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?

Clearly establishes the trigger condition (item already in cart) and gives an explicit conditional rule for the optional subscription flag when a product exists as both a one-time purchase and a subscription, plus the 0-means-removal rule. It stops short of naming sibling tools (e.g. remove_from_cart or add_to_cart) as alternatives, so routing is implied rather than explicit.

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