Skip to main content
Glama

ELART parts

getCart

Read-onlyIdempotent

Return the agent cart: lines, totals, VAT, the chosen shipping method and the chosen payment method. Read only. Pass cart_token from createCart.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cart_token": "<cart_token>"
    },
    "name": "getCart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_tokenYesCart token from createCart. Required on every later cart call.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. The HTTP status stays 200.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so "Read only" merely restates structured data. The one piece of added value is the dependency on createCart for the token. Nothing is said about what happens with a stale or unknown token, or whether an empty cart returns an error or an empty payload. With annotations carrying the safety profile, a 3 is appropriate.

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?

Three short sentences, front-loaded with the verb and return contents, followed by the safety note and the prerequisite. Efficient overall; "Read only" is slightly redundant given readOnlyHint and could have been replaced with more useful behavioral detail.

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?

An output schema exists, so the description is not obligated to spell out return values, and the token prerequisite is covered. For a one-parameter read tool this is close to complete; the only real gap is error behavior for an expired or unknown cart token.

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% and the single parameter already carries a description nearly identical to the sentence in the tool description. The description adds no syntax, format, or lifecycle detail beyond what the schema states. Baseline 3 applies when the schema does the work.

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?

States a specific verb and resource ("Return the agent cart") and enumerates the payload contents (lines, totals, VAT, shipping method, payment method), so an agent knows exactly what it gets back. It is clearly distinguishable from mutation siblings like addToCart or setPaymentMethod by the "Read only" qualifier. It stops short of naming a sibling alternative, so it is not 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The prerequisite "Pass cart_token from createCart" is explicit and tells the agent the required call ordering, which is genuine usage guidance. However, there is no statement of when to prefer this over siblings (e.g., after addToCart to refresh totals, or before startPayment) and no exclusions. Usage is implied rather than prescribed.

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