Skip to main content
Glama

List carts

list_carts
Read-onlyIdempotent

Lists the store's cart drawers, newest first: id, name, on/off status, the sections that show, and the reward bar's tiers. Only one cart is on (live) at a time. Use the id with get_cart, update_cart and the other cart tools.

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": "list_carts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 25.
queryNoOnly carts whose name contains this text.
offsetNoSkip this many, for paging.
statusNoFilter by status. Default any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds genuine context beyond them: results are ordered newest first and only one cart can be live at a time, plus the shape of the returned data in lieu of an output schema. That is useful but not rich treatment of ordering/pagination behavior.

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 what the tool returns, followed by the key domain invariant and then the routing hint. Nothing is repeated from the schema or annotations and every sentence carries information.

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?

With no output schema, the description compensates by listing the returned fields, and the annotations plus full schema coverage handle safety and filtering. An agent has everything it needs to call this correctly and know what comes back.

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 coverage is 100%: limit, query, offset and status each carry their own description and the status enum is self-documenting, so the schema does the heavy lifting. The description adds no extra parameter semantics, which keeps this near the baseline 3-4 range rather than higher.

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 gives a specific verb and resource (lists the store's cart drawers) and enumerates the fields returned (id, name, on/off status, visible sections, reward bar tiers), which distinguishes it clearly from get_cart and the other cart tools named later.

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?

It tells the agent what to do with the results - reuse the returned id with get_cart, update_cart and other cart tools - which implies this is the discovery step before those calls. It stops short of explicit when-not guidance or naming a filtering alternative, but no obvious sibling competitor exists for listing carts.

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