Skip to main content
Glama

The Purple Bear ordering

Create checkout link

create_checkout_link
Idempotent

Use when the customer is ready to order. Checks every item against the live menu and returns a link to this business's checkout page with that cart ready, plus the cart with estimated prices. Nothing is charged or saved: the customer opens the link, reviews the order, chooses pickup or delivery and pays there. Up to 40 lines.

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": {
      "location_id": "<location_id>",
      "items": "<items>"
    },
    "name": "create_checkout_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesThe items of the order.
location_idYesLocation id from get_business_info.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations declare readOnlyHint=false but destructiveHint=false, and the description usefully resolves that ambiguity: 'Nothing is charged or saved' plus the follow-up that payment happens on the hosted page. It also discloses the 40-line cap and that validation happens live, though it does not say what is returned or how failures are reported when an item fails validation.

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?

The trigger is front-loaded and the side-effect disclaimer follows immediately, which is the right order. Four sentences with no filler, though the sentence describing what the customer does on the hosted page could be tightened without losing meaning.

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?

For a two-parameter tool with full schema coverage and no output schema, the description supplies the return shape (link plus cart with estimated prices), the side-effect profile, and the line limit. The remaining gap is error behavior on unavailable or invalid items, which an agent would need before committing a 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 coverage is 100%, so item_id, options, quantity and location_id are already documented in the schema. The description only restates the line limit ('Up to 40 lines'), which merely echoes maxItems=40; it adds no meaning about option groups, notes, or the location_id source beyond what the schema says.

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 artifact: it validates items against the live menu and returns a checkout link plus a priced cart. The hand-off flow ('the customer opens the link... pays there') makes clear this is not an order-placement or payment tool, so it is distinguishable from repeat_order and search_menu.

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?

'Use when the customer is ready to order' gives a clear trigger condition, and 'checks every item against the live menu' implies items must first come from search_menu. It lacks an explicit when-not clause (e.g. what to do when the customer is still browsing or when an item is unavailable), so it falls short of full routing guidance.

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