Skip to main content
Glama

Create checkout link

create_checkout_link
Idempotent

Build a bringmethat.com checkout link for the customer's items. Opening checkout_url fills their cart and opens bringmethat.com checkout, where they review the total and pay. No account is required. Does not charge a card and does not place the order. Validates items and required options first and returns quote plus checkout_url, or the problems to fix with the customer. Optional customer_name, customer_email, and customer_phone prefill guest checkout. Never ask for a card number. Checkout is the item total plus a 10% markup, the restaurant's own service fee (none for partner restaurants; there is no flat service fee), tax, a $7 delivery fee ($0 for pickup) unless a Habitat or MealMe delivery quote replaces it, and an optional tip. Premium ($9.95/month or $96/year) waives the markup and the service fee, but not delivery, tax, or tip. The card is authorized for that total plus $15 when the total is over $30, otherwise plus 45%. Only the final amount is charged.

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

Input Schema

NameRequiredDescriptionDefault
itemsYes
fulfillmentYes
customer_nameNoCustomer name. Prefills guest checkout. Does not create an account.
restaurant_idYes
customer_emailNoEmail for the receipt. Prefills guest checkout. Use the same email with get_order_status.
customer_phoneNo10-digit US phone. Prefills guest checkout.
delivery_addressNoStreet address for delivery, e.g. '2415 N Ashland Ave, Chicago, IL 60614'. Prefills checkout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / customer_email
      Added value: +{
      +  "description": "Email for the receipt. Prefills guest checkout. Use the same email with get_order_status.",
      +  "type": "string"
      +}
    • addedInput schema / properties / customer_name
      Added value: +{
      +  "description": "Customer name. Prefills guest checkout. Does not create an account.",
      +  "type": "string"
      +}
    • addedInput schema / properties / customer_phone
      Added value: +{
      +  "description": "10-digit US phone. Prefills guest checkout.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: no account required, no card charged, no order placed, and a full explanation of what the total comprises (markup, service fee, tax, delivery fee, tip) plus the authorization hold rule ($15 over $30, else 45%). The idempotent and openWorld hints are consistent with building a reusable URL. What is missing is whether links expire or are reusable and how validation failures are surfaced, so it falls just short of the top score.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded correctly, but the body is a dense unbroken wall covering pricing, authorization holds, and premium subscription tiers ($9.95/month or $96/year) that are tangential to invoking the tool. The fee breakdown is genuinely useful for explaining cost to a customer, yet the premium subscription pricing could be deferred to the signup-link sibling, and bullet-like segmentation would improve scanability.

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?

With no output schema, the description carries the return-value burden and does so: it returns a quote plus checkout_url or the specific problems to fix. It covers the full cost model and authorization behavior an agent needs to set customer expectations, and states that no account is required. Remaining gaps, such as delivery_address being needed when fulfillment is 'delivery', are minor.

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 57%, and the description's only parameter-level content is that customer_name, customer_email, and customer_phone prefill guest checkout, which largely duplicates the schema text. It adds no guidance on restaurant_id, fulfillment, items, or option group_index/choices structure beyond what the schema already documents. Baseline 3 is appropriate given the schema does most of the work.

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 ('Build a bringmethat.com checkout link for the customer's items') and immediately explains the effect of opening checkout_url. It also clarifies what it does NOT do (no card charge, no order placement), which separates it from a true order-placement tool. It stops short of naming the closest sibling, quote_order, even though it mentions returning a quote.

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 usage context: validate items and required options first, then hand the customer checkout_url or the list of problems to fix. The directive 'Never ask for a card number' is a useful operational constraint. However, it never explicitly says when to prefer quote_order versus this tool, leaving the agent to infer the boundary from the overlapping 'quote' return.

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