Skip to main content
Glama

Create a hosted checkout link

create_checkout_link

Assemble a cart and get a Stripe-hosted checkout URL the customer opens to pay; no card data passes through the agent. Item ids come from the search tools (diamond:<report>, setting:<slug>, jewelry:<slug>); a complete ring is one setting plus one diamond. Needs the shipping address (prices tax and shipping into the link). Expires after 24 hours. No credential needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesItems to buy; a complete ring is one setting plus one diamond
buyer_nameNoBuyer full name
buyer_emailNoBuyer email for the receipt; Stripe collects it on the payment page when omitted
shipping_addressYesWhere the order ships; used to price tax and shipping into the link

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe Stripe-hosted checkout URL, when ready
statusYesready when a payable link was created; needs_input lists what is missing
messageYesHuman-readable outcome, including the link when ready
sandboxYesTrue on a sandbox credential: the link is simulated and nothing is payable
tax_usdYesSales tax in US dollars for the given address
problemsYesWhat blocks the link when status is needs_input
total_usdYesTotal the buyer pays in US dollars
expires_atYesISO timestamp the link stops working
shipping_usdYesShipping in US dollars (0 = free insured FedEx)
subtotal_usdYesItems subtotal in US dollars

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false/destructiveHint=false, so description carries the burden. It discloses key behaviors: no card data passes through the agent, link expires after 24 hours, no credential needed, and shipping address prices ta/shipping into the link. These add meaningful operational context beyond annotations, though it does not mention other side effects like Stripe session creation.

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?

Four sentences, front-loaded with the core purpose and concise constraints. Every sentence adds necessary operational detail; there is no redundant filler.

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?

Tool has nested objects and 4 params, but description covers workflow, required input, link lifetime, auth requirement, and payment security. Output schema handles return-value expectations. Minor gap: no explicit note about buyer_name/buyer_email optionality, though schema covers it.

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 already covers 100% of parameters, raising baseline. Description adds meaning beyond schema: ring composition rule (one setting + one diamond), item id source, and shipping address purpose. This helps the agent construct valid arguments.

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 exactly what it does: assemble a cart and get a Stripe-hosted checkout URL the customer opens to pay. It clearly distinguishes from siblings (all search/info/consultation tools) by dscribing the payment checkout flow. No ambiguity.

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?

Describes the workflow context: item ids must come from search tools and shipping address is required for ta/shipping. It implies use after search and before payment. However, it does not explicitly name alternatives or state when-not to use it, such as directing consultation requests to request_consultation.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each search tool targets a distinct inventory category (loose diamonds, engagement ring settings, fine jewelry, knowledge base), and the non-search tools handle distinct actions, no two tools appear to do the same job. Potential overlap between engagement rings and jewelry is resolved by clear setting vs. finished-jewelry descriptions.

Naming Consistency5/5

All eig tools follow a snake_case nouns pattern, with search_* used consistently for lookups and get_/read_request_create_ for other operations. Naming is predictable and uniform.

Tool Count5/5

Eight tools is well-scoped for ecommmerce/knowledge server: three product searche, knowledge-base search plus read, company info, consultation booking, checkout. Every tool ear its place and adds no unnecessary surface area.

Completeness5/5

The set covers the full customer journey: browsing diamonds setting, jewelry, reading guides, getting busines details, requesting consultation, and completing purchase via checkout. Potential gap like order tracking are outside the apparent scope.

Resources