Skip to main content
Glama

Quote an order

quote_order
Read-onlyIdempotent

Price a cart the way BringMeThat checkout will show it: item total, fees, tax, delivery or pickup, and the default tip. Does not charge a card, does not place an order, and does not create a link. Pass the same restaurant_id, fulfillment, and items you will pass to create_checkout_link. The quote is the guest total. The Premium checkbox keeps its default and is not changed by this tool. 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": "quote_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
fulfillmentYes
restaurant_idYes
delivery_addressNoStreet address for delivery. Not required to quote.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds real substance beyond that: no card charge, no order placement, no link creation, and the exact composition of the quoted total (markup, restaurant service fee, tax, $7 delivery vs $0 pickup, tip).

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 and exclusions are front-loaded and efficient, but roughly half the text covers the checkout charge flow — card authorization thresholds of +$15 or +45%, Premium subscription pricing at $9.95/month or $96/year — which an agent does not need in order to call a read-only quote tool. That material dilutes the actionable guidance.

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 four-parameter read-only tool with no output schema, the definition explains the quote's composition and its relationship to create_checkout_link well enough to call correctly. It is somewhat incomplete on the shape of the returned quote (e.g., whether a line-item breakdown comes back) and drifts into post-quote charge mechanics.

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 description coverage is only 25%, so the description carries more burden than usual. It clarifies that delivery_address is not needed to quote and that the three required parameters should mirror create_checkout_link, but it says nothing about the items/options structure (group_index, choice names), leaving the nested schema to explain itself.

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 ('Price a cart the way BringMeThat checkout will show it') and immediately enumerates what the quote contains. It actively distinguishes itself from siblings by negating the adjacent operations: 'Does not charge a card, does not place an order, and does not create a link.'

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 concrete usage context by tying it to create_checkout_link ('Pass the same restaurant_id, fulfillment, and items you will pass to create_checkout_link'), which tells the agent when and how to pair it. It lacks an explicit 'use this when you need to preview the total before creating a link' framing and names only one alternative.

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