Skip to main content
Glama

Cop

Get a cart

get_cart
Read-onlyIdempotent

A cart from create_cart, re-priced live (stock and prices can change), with its checkout_url.

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_id": "<cart_id>"
    },
    "name": "get_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_idYes
languageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety needs no restating. The description adds genuinely new behavior: the cart is re-priced live and stock/prices can change, warning the agent that results are not frozen snapshots, and it discloses that checkout_url is included in the response. It does not say what happens for a stale or missing cart_id, keeping it from a 5.

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?

A single dense sentence with zero filler, and the most decision-relevant fact (live re-pricing) is packed early. It loses a point because the sentence is a grammatically incomplete fragment, which costs a moment of parsing.

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?

With no output schema, the description does well to name checkout_url and the re-pricing behavior, but it omits the rest of the cart payload and says nothing about the two input parameters or error behavior. Adequate for a simple read tool, but not fully complete.

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?

Schema description coverage is 0%, so the description must carry parameter meaning, and it carries none. Neither the required cart_id nor the language enum (en/fr) is mentioned, leaving the agent to guess that language controls the response locale.

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 description names the resource (a cart) and anchors it against the create_cart sibling, making clear this is the retrieval counterpart. It also signals the payload (checkout_url) and that pricing is refreshed. It falls short of a 5 only because it is phrased as a noun fragment rather than stating the verb/scope outright.

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 phrase 'A cart from create_cart' weakly implies the workflow position (call after creating a cart), but there is no explicit when-to-use or when-not-to-use guidance. The obvious alternative, update_cart, is never contrasted, so the agent must infer that this tool only reads while update_cart mutates.

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