Skip to main content
Glama

update_cart

Build the guest order step by step in a server-side cart, the way a human uses the web cart. Without cartId a new cart is created (keep the returned cartId — it is the access token). Each entry of updates: {itemId, quantity, variants?, addons?, comment?} adds a line; {lineId, quantity} changes one; {lineId, quantity: 0} removes it. Prices are recomputed from the live menu on every read, never stored. The answer includes a checkoutUrl the human can open to finish in the normal web checkout, and the cart can be placed as an order with create_order(cartId).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cartIdNoOmit to create a new cart
domainYes
updatesYes
languageNo

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries full behavioral disclosure. It reveals important behaviors: creating a new cart when cartId is absent, treating cartId as an access token, recomputing prices from the live menu on every read (never stored), including a checkoutUrl, and supporting add/change/remove operations. It does not mention permissions, reversibility, or error handling, but it provides substantial insight beyond the schema.

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

Conciseness4/5

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

The description is a single three-sentence paragraph that front-loads the main purpose and then provides necessary operational details. Each sentence adds unique value: creation semantics, update formats, and price/checkout behavior. It is somewhat dense but not bloated, appropriately sized for the tool's complexity.

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?

Despite having no output schema and only 25% schema description coverage, the description covers the essential invocation logic: how to add/change/remove lines, when to include cartId, what to do with the returned cartId, and how to place the order via create_order. It also mentions the checkoutUrl in the response. Missing are details about the full return structure, error cases, and authorization requirements, but for the described use case it is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (only cartId has a description), so the description compensates by explaining the complex 'updates' parameter in detail: the exact shapes for adding, changing, and removing lines, and the meaning of cartId as an access token. It does not elaborate on 'domain' and 'language', leaving those ambiguously documented, but the critical parameter semantics are well covered.

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 tool's function: 'Build the guest order step by step in a server-side cart,' using a specific verb ('build') and resource ('cart'). It distinguishes itself from siblings by explicitly noting that the cart 'can be placed as an order with create_order(cartId)' and implying reading via get_cart. The scope (server-side cart, guest order) is precise.

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?

The description provides clear context for when to use the tool: to build a guest order step by step, and it names an alternative, create_order, for placing the cart as an order. It also explains the conditions for creating a new cart (omitting cartId) versus updating an existing one. However, it does not explicitly state when not to use this tool or mention alternatives like get_cart for reading.

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.

TDQS

A3.8/5.0
Disambiguation5/5

Each tool targets a distinct resource/action: menu, item, search, cart, order, reservation, availability, store info, and policies. Even similar tools like get_item vs search_products are clearly differentiated by exact lookup vs semantic search. There is no meaningful overlap.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (get_, create_, cancel_, check_, update_, search_). No mixed conventions or stylistic deviations exist.

Tool Count5/5

13 tools is well-scoped for the guest-facing restaurant domain, covering menu browsing, search, cart, orders, reservations, store info, and policies. Each tool is justified and the count is within the ideal range.

Completeness4/5

Core lifecycle coverage is solid: menu, cart, order placement/status, reservations, and availability are all covered. The only notable gap is the absence of an order cancellation tool, but this may be intentional and does not block primary workflows.

Resources