Skip to main content
Glama

Set up a checkout (draft)

setup_checkout

Create a complete checkout in one call: the product, its delivery, the cart copy, an optional order bump, an optional one-click upsell, optional payment plans (weekly or monthly instalments), optional booking (buyers pick a call time), optional questions buyers answer before paying and an optional sales page above the cart. It is always saved as a DRAFT: nobody can buy until the seller previews it and presses Publish in the dashboard. Before calling, make sure you have the name, price, currency, one-time or subscription, and where buyers get it (a https:// link, or manual delivery). Ask the seller for anything missing; never invent a delivery link or a price. Returns the dashboard link to preview and publish.

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": {
      "name": "<name>",
      "price": "<price>"
    },
    "name": "setup_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
bumpNoOptional order bump: a small add-on ticked in the cart.
nameYesProduct name buyers see, e.g. "Launch Playbook".
slugNoOptional short link, e.g. launch-playbook. Omit to derive it from the name.
perksNoUp to 12 short "what you get" lines shown in the cart.
priceYesPrice in major units (97 = $97.00). For a subscription, the price per interval. 0 makes a free one-time checkout (a lead magnet): buyers give their name and email, and a paid bump or upsell still charges.
intakeNoQuestions buyers answer in the checkout before they pay, like a booking form: up to 5, in order. Use it when the seller wants to know something before a call or a done-for-you job (their website, their goals). Types: short (one line, up to 300 characters), long (a paragraph, up to 2000), url (a web address; "linkedin.com/in/x" is accepted and saved with https://), checkboxes (pick any of the options) and choice (pick one). required: true stops the buyer paying until it's answered. On update_checkout this replaces every question; pass the ids from get_product to keep a question's answers lined up, and null or [] removes them all. It doesn't touch money, so it applies straight away even on a live checkout. Answers show in the seller's dashboard, sale alert and list_orders.
upsellNoOptional one-click upsell offered after payment.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
bookingNoSell a call with its time: buyers pick a slot in the checkout and pay for it. One-time prices and payment plans, Stripe or PayPal only (not Lemon Squeezy). A subscription can only sell a coaching package (see package). timezone is required: ask the seller for theirs (an IANA name like Europe/London); their hours are in it. hours maps a weekday (mon to sun) to ranges of ["09:00", "17:00"]; leave a day out for closed. Anything else you leave out gets a default (60-minute calls every 30 minutes, no buffer, 12 hours' notice, 30 days ahead, weekdays 9 to 5). On update_checkout this replaces the rules, and null turns booking off. It doesn't touch money, so it applies straight away even on a live checkout. Only offered to sellers who have calendar booking.
ctaLabelNoBuy button text. Omit for the default.
currencyNoThree-letter code, e.g. usd, gbp, eur. Default usd.
deliveryUrlNohttps:// link where buyers get the product (course, download, community).
descriptionNoSales copy shown beside the cart. Plain text; blank lines make paragraphs and lines starting with "- " make bullets.
pricingTypeNoDefault onetime.
deliveryNoteNoWhat buyers are told happens next, e.g. "We'll email you to book within 24h".
paymentPlansNoWays to pay in instalments, offered beside paying in full. One-time prices only, and card payments (Stripe) only. The first payment is taken at checkout, the rest every week or every month from that day. Ask the seller for the number of payments, the amount of each and how often; never invent them. On update_checkout this replaces the list, and [] removes every plan.
guaranteeBodyNoOne or two sentences explaining the guarantee.
salesPageHtmlNoOptional HTML for a sales page above the cart. Call get_sales_page_guide first and follow it.
guaranteeTitleNoe.g. "30-day money-back guarantee".
manualDeliveryNoTrue when the seller delivers it themselves (a call, a service) instead of a link.
billingIntervalNoSubscriptions only. Default month.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the supplied annotations (readOnly false, destructive false, openWorld false), the description discloses the crucial state model: the checkout is always saved as a DRAFT and nobody can buy until the seller previews and presses Publish in the dashboard. It also states the return value (dashboard link to preview and publish) and adds a strong anti-hallucination guardrail about never inventing a delivery link or price.

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?

Front-loaded with the purpose, then the draft semantics, then prerequisites, then the return — a sensible order for an agent. The capability inventory in the first sentence is long but earns its place by letting an agent recognise optional features (booking, payment plans, intake) without opening the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter tool with nested objects and no output schema, the description covers the essential gaps: what the object becomes (draft), what is returned (dashboard link), what must be gathered beforehand, and what must never be fabricated. Nothing an agent needs in order to call this correctly is missing.

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 100%, so the per-parameter semantics are already fully documented and the baseline is 3. The description adds value by collapsing 21 parameters into a mental model and prioritizing the handful that must be collected before calling (name, price, currency, pricing type, delivery), which is meaning the schema alone does not convey.

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?

"Create a complete checkout in one call" is a specific verb+resource, and the sentence then inventories exactly what a checkout covers (product, delivery, cart copy, bump, upsell, payment plans, booking, intake, sales page). It also makes clear this is creation rather than modification, which separates it from update_checkout and publish_checkout without naming them.

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?

Explicit preconditions are given: before calling you must have the name, price, currency, one-time vs subscription, and delivery mechanism, and you must ask the seller for anything missing rather than inventing a price or delivery link. What's missing is an explicit exclusion — it never says to use update_checkout for an existing checkout or publish_checkout to make it live, leaving that routing 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.