Skip to main content
Glama

get_cart

The session draft (at most ONE staged listing). Nothing is booked and no money has moved until the hosted checkout page is completed. Pair: add_to_cart stages, update_cart_item edits quantity, remove_from_cart empties, checkout hands off.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose two meaningful behaviors: nothing is booked and no money has moved until the hosted checkout page completes, and at most one listing is staged per session. It omits session/auth requirements and what an empty cart yields, which are the remaining behavioral gaps.

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 short sentences, front-loaded with the resource definition, then the non-commitment guarantee, then the sibling routing. No filler, and each clause (including the cardinality parenthetical) carries information an agent needs.

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

Completeness3/5

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

For a zero-parameter getter with no annotations and no output schema, the description should sketch what comes back — staged line items, quantities, prices, totals — and it only says "session draft." The state semantics are strong, but an agent still cannot predict the response shape.

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?

The tool takes zero parameters, so there is no parameter meaning to add; the schema is empty and 100% covered. Baseline 4 applies, with nothing in the description either helping or hurting.

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 session draft (at most ONE staged listing)" defines the resource concretely and the cardinality cap, so an agent knows this is the current cart view. It never uses an explicit retrieval verb ("returns the cart contents"), relying on the name and the pairing sentence to convey that, which keeps it just short of a 5.

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 "Pair:" clause maps every sibling to its role — add_to_cart stages, update_cart_item edits quantity, remove_from_cart empties, checkout hands off — which effectively routes an agent away from this tool for mutations. It stops short of an explicit "call this when you need to inspect the cart before checkout" instruction or any exclusion such as empty-cart behavior.

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.