Skip to main content
Glama

Bafan

Checkout cart

checkout_cart
Idempotent

Build the checkout quote from an entered address or a saved address_id, and the chosen delivery, pickup point and payment. Returns the available options, fees, total and quote_complete.

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

Input Schema

NameRequiredDescriptionDefault
addressNoContact and delivery address entered by the shopper. Use the two-letter country code.
cart_keyNoGuest carts only; omit it when the account is connected. Private tool input. Copy the key from an earlier tool result, the cart_key query parameter of a payment link, or the last segment of a /shop/mcp-checkout/ link already in the chat. Keep it out of shopper replies.
address_idNo
carrier_idNo
gls_point_idNo
payment_method_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description stays consistent with that by framing the call as building a quote rather than committing an order. It adds real value beyond the annotations by listing what comes back (available options, fees, total, quote_complete) and by noting the quote may be incomplete, which tells the agent this is a recomputable computation. It does not explain what makes a quote incomplete or what permissions/state are required.

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?

A single dense sentence front-loads the action and follows immediately with the inputs and the return payload; there is no filler or redundant restatement of the title.

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?

With six parameters, a nested address object and no output schema, the definition covers the essential contract: what drives the quote and what comes back. The gaps are modest — no statement of defaults when optional parameters are omitted, and no note on how quote_complete should gate the next step.

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 description coverage is only 33% (address and cart_key), so the description must carry weight, and it does: it maps the remaining parameters to concepts — 'entered address or a saved address_id', 'delivery' (carrier_id), 'pickup point' (gls_point_id) and 'payment' (payment_method_id). It does not state that address and address_id are alternatives in the strict sense or that carrier vs. pickup point are mutually exclusive paths, so some inference remains.

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 gives a specific verb and resource ('Build the checkout quote') plus the inputs that drive it (address or address_id, delivery, pickup point, payment), which clearly separates it from cart-mutation siblings like set_cart_quantity. It does not name a sibling alternative explicitly, so it stops 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 Guidelines3/5

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

Usage is implied by the enumerated inputs: you call it once you have an address (entered or saved), a delivery/pickup choice and a payment method. There is no explicit statement of when not to use it, no prerequisite ordering (e.g., that it should follow cart creation and precede order placement), and no named alternative for the same task.

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