Skip to main content
Glama

get_cart

Read a cart created with update_cart: lines with live unit prices, subtotal, item count, the checkoutUrl for a human hand-off and the expiry date (carts live 7 days). Lines whose item left the menu are flagged unavailable and excluded from the subtotal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cartIdYes
domainYes
languageNo

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It goes beyond a simple read operation by revealing live unit prices, subtotal calculation, item count, checkoutUrl for human hand-off, a 7-day expiry, and the fact that unavailable lines are flagged and excluded from the subtotal. This is rich, actionable context.

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?

The description is a single, dense sentence that front-loads the core purpose ('Read a cart created with update_cart') before enumerating the key response attributes. Every clause earns its place, providing substantial information without unnecessary 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?

For a simple retrieval tool, the description is remarkably complete. It covers what the response contains, the lifetime of the cart, and the handling of unavailable items. The lack of an output schema is compensated by the explicit enumeration of returned fields. No critical behavioral gaps remain.

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

Parameters2/5

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

The input schema has zero description coverage, and the tool description does not add any information about the parameters (cartId, domain, language). It does not explain required vs optional fields, format expectations, or how domain/language affect the response. The parameter names are self-explanatory but the description fails to provide any additional meaning.

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 verb 'Read' and the resource 'cart created with update_cart', distinguishing it from sibling tools like create_order or get_order_status. It also enumerates the specific contents of the response (lines, prices, subtotal, item count, checkoutUrl, expiry), making the tool's purpose unambiguous.

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 specifies that this tool reads a cart that was previously created or updated with the sibling update_cart tool, providing a clear usage context. It does not explicitly mention alternatives or exclusions, but the linkage to update_cart implicitly guides the agent on when to use it.

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