Skip to main content
Glama

get_checkout_link

Generate a single-use checkout link for a cart so a customer can claim it within 30 minutes and finish payment on the store site without placing the order or collecting payment details.

Instructions

Get a single-use checkout link for one of your carts. A person opens it in a browser within 30 minutes; the cart becomes theirs and they complete checkout and payment on the store site. This tool never places an order or takes payment details.

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": {
      "cart_id": "<cart_id>"
    },
    "name": "get_checkout_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_idYesThe cart handle, from `create_cart`.

Output Schema

NameRequiredDescriptionDefault
cart_idYesThe cart handle the link hands off.
expires_atYesWhen the link stops working, as an RFC 3339 timestamp.
checkout_urlYesThe single-use claim URL to open in a browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses single-use semantics, a 30-minute expiry, transfer of cart ownership to the opener, and that no order or payment is captured. Gaps remain around whether generating a new link invalidates a prior one and what happens to the cart if the link expires unused.

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 the core action, then the human-facing lifecycle, then the safety boundary. No redundant or filler wording.

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?

An output schema exists, so return values need not be explained, and the key behavioral constraints are covered. Minor incompleteness remains around link regeneration and expiry effects on the cart, which are relevant for a tool whose output is a time-limited credential.

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?

There is a single parameter with 100% schema description coverage, and the schema already documents it as the cart handle from create_cart. The description adds no further meaning about format or validation, so the baseline 3 applies.

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?

States a specific verb and resource ('Get a single-use checkout link') plus the object it applies to ('one of your carts'), and the closing sentence distinguishes it from order-placement siblings like create_order_draft by ruling out order creation and payment capture.

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 makes the intended handoff scenario clear — a human opens the link in a browser and finishes checkout on the store site — which implies when to reach for it, and the negative statement about not placing orders clarifies the boundary against order-creation siblings. It does not name an explicit alternative or state prerequisites such as the cart being non-empty.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.