Skip to main content
Glama

ELART parts

createCart

Create an empty guest cart for agent checkout. Returns cart_token. Optional country sets presentment currency (GB→GBP, US→USD, AU/NZ→AUD, else EUR/USD rules). Write tool — confirm with the buyer.

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

Input Schema

NameRequiredDescriptionDefault
localeNoShop locale, default en_US.
countryNoBuyer ship-to country ISO-2 (sets currency).
agent_sourceNoAgent channel for UTM (utm_source).

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

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, and the description adds useful context: it returns cart_token, country affects presentment currency, and buyer confirmation is advised. It stops short of explaining that repeated calls produce separate carts or any auth/rate-limit behavior, but with annotations covering the safety profile this is strong.

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 front-loaded with the core purpose, then quickly covers return value, currency behavior, and write confirmation. It is compact and every sentence carries useful information.

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?

For a simple three-parameter creation tool with an output schema and full schema coverage, the description covers purpose, return token, currency effects, and buyer confirmation. It does not explain the non-idempotent implication of repeated calls, but that is a minor gap given the rich structured fields.

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%, so the baseline would be 3. The description adds meaning beyond the schema by explaining the country-to-currency mapping (GB→GBP, US→USD, AU/NZ→AUD, else EUR/USD rules), which is not captured in the country parameter's short schema description.

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 states a specific verb and resource: 'Create an empty guest cart for agent checkout.' It clearly distinguishes creation of an empty cart from cart mutation siblings like addToCart, and the scope 'guest cart for agent checkout' is precise.

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 gives clear usage context ('for agent checkout') and a write-safety instruction ('confirm with the buyer'). It does not explicitly name alternatives or when not to use the tool, which keeps it from a 5.

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