Skip to main content
Glama

Update cart

update_cart
DestructiveIdempotent

Sets the quantity of existing cart lines by line_id; quantity 0 removes a line. Returns the updated cart and checkout_url. No order is placed and no payment is taken here; checkout_url opens the checkout on shop.nevini.wine. NEVINI sells alcohol. The buyer and the recipient must be 18 or older (Dutch Alcohol Act); orders for anyone under 18 are not allowed. The order is only placed once the customer opens the checkout and completes the order. The recipient's age may be checked on delivery; have a valid ID ready.

Input Schema

NameRequiredDescriptionDefault
linesYes
cart_idYescart_id exactly as returned by create_cart, including its ?key= part.
languageNoLanguage of item names and of the checkout: "nl" (default) or "en".

Output Schema

NameRequiredDescriptionDefault
itemsYes
cart_idYes
currencyYes
warningsYes
next_stepYes
age_noticeYes
checkout_urlYes
order_placedYes
subtotal_eurYes
shipping_noteYes
total_quantityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag the operation as destructive and idempotent, but the description adds real behavioral context: it returns the updated cart and checkout_url, no payment or order is placed, checkout happens on shop.nevini.wine, and age verification may occur on delivery. This goes well beyond what the annotations provide and is consistent with them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key operational sentence is front-loaded and efficient, but the description then repeats the checkout-order idea across two separate sentences and includes multiple sentences of alcohol age policy. That policy is relevant for this store, but the repetition and length keep it from being tight.

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 annotations covering safety/idempotency, the description supplies the remaining context an agent needs: what the tool returns, that checkout_url is where checkout happens, and the age restrictions for this alcohol seller. Nothing essential to calling it correctly is missing.

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 schema itself documents all three parameters, including quantity's 0-24 range and the cart_id key requirement, while the description only restates that quantity 0 removes a line. It adds little meaning beyond the schema and does not explain the language parameter or cart_id format, so baseline 3 is appropriate at 67% schema coverage.

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 first sentence names a specific verb and resource: sets quantities of existing cart lines by line_id, with quantity 0 removing a line. This clearly distinguishes it from add_to_cart and create_cart, which handle adding and creating rather than modifying existing lines.

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?

Usage is implied by 'existing cart lines' and the removal behavior for quantity 0, and the description clarifies that no order is placed here. However, it never explicitly names alternatives such as add_to_cart for new lines or create_cart for a new cart, so the agent must infer when to choose this tool over its siblings.

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