Skip to main content
Glama

Bafan

Get order defaults

get_order_defaults
Idempotent

Get the saved address, delivery and payment defaults of a connected account, or the checkout state of a guest cart.

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

Input Schema

NameRequiredDescriptionDefault
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is largely covered; the description adds the meaningful behavioral distinction that the tool serves either account-level saved defaults or a guest cart's checkout state. However, it never explains why a 'Get' tool carries readOnlyHint=false — an agent cannot tell whether calling it for a guest cart creates or advances a checkout session. That unexplained side effect is the biggest disclosure gap.

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 front-loaded sentence with no filler that covers both modes efficiently. The phrase 'checkout state' is slightly under-defined, which is the only thing keeping it from a 5.

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 one well-documented parameter, no output schema, and rich annotations, the description is close to sufficient for invocation. It is still thin on what the two branches return and on the non-read-only side effect implied by readOnlyHint=false, which an agent would want before calling it for a guest cart.

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 cart_key documentation is unusually rich (fixed 43-char length, where to source the key, privacy constraint about shopper replies), doing the heavy lifting. The description contributes only the framing that cart_key is the guest-cart path and that it is omitted for connected accounts. Baseline 3 is appropriate when the schema already documents the sole parameter this thoroughly.

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 a specific verb ('Get') and two concrete resources: the saved address/delivery/payment defaults of a connected account, and the checkout state of a guest cart. That dual-mode framing is enough to tell it apart from list/mutation siblings such as get_cart or prepare_order. It stops short of explicitly naming an alternative, so it sits at 4 rather than 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 description implies the two calling contexts (connected account vs guest cart) which effectively indicates when each mode applies. It gives no explicit 'use this instead of X' routing against siblings like get_cart or prepare_order, and the operative rule ('omit cart_key when the account is connected') lives only in the schema, not the description. Usage is inferable but not stated.

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