Skip to main content
Glama

Prepare a checkout

prepare_checkout

Stage checkout for an eligible available item; requires sign-in and actions:prepare. Returns intent, action_id, expires_at, provider, destination_url and consequence including the listed price for approval. On confirm, eligible Square/Shopify connections create a hosted checkout; other shops use a URL handoff. The provider collects payment.

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": {
      "business_id": "<business_id>",
      "offering_id": "<offering_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "prepare_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
business_idYes
offering_idYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare the non-read-only, non-destructive, non-idempotent profile; the description adds the real behavioral context: staging versus committing, the expiry (expires_at), the two provider paths after confirmation, and that the provider, not this tool, collects payment. It does not explain the required idempotency_key or what failures look like when an item is ineligible, which is why this is not 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?

Three front-loaded sentences: purpose first, returned payload second, downstream confirmation behavior third — no filler. The middle sentence is a dense field list, but every item listed is information the agent needs for approval flow.

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 no output schema, the description usefully enumerates the return payload (intent, action_id, expires_at, provider, destination_url, consequence with price), which covers what an agent needs to present for approval. Gaps remain around idempotency/retry behavior and eligibility failure modes for a three-required-param mutation.

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% across three required parameters, so the description must carry the burden and it largely does not. Only 'offering_id' is indirectly illuminated by 'eligible available item'; business_id and the required idempotency_key (min 8, max 200 chars) get no explanation of scope or retry semantics.

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?

States a specific verb and resource ('Stage checkout') plus the eligibility and auth preconditions, which is far more than a restatement of the title. It also implies the boundary with the confirm step ('On confirm... hosted checkout... URL handoff'), though it never names confirm_checkout_handoff explicitly, so an agent must infer the sibling mapping.

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?

Gives clear preconditions — an 'eligible available item', sign-in, and the actions:prepare scope — which tells the agent when the call can succeed. What is missing is explicit routing: it never says to check check_availability first or to call confirm_checkout_handoff to finish, leaving the sequencing to inference.

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