Skip to main content
Glama

Restaurants & Menus

Split Group Bill

food_estimate_group_cart
Read-onlyIdempotent

Use this when you already know which menu items a group wants and need exact subtotal, local food/alcohol tax, tip, per-person split, and direct ordering links. Do not use this when you still need help picking dishes for guests with different diets (use food_recommend_group_order). Behavior: free, no API key required; never places a charge and returns HTTP 422 instead of guessing market prices.

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": {
      "business_id": "<business_id>",
      "items": "<items>"
    },
    "name": "food_estimate_group_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesLine items to price from the venue structured menu.
tip_pctNoOptional tip percentage applied to pre-tax subtotal (0 to 50).
party_sizeNoNumber of diners for equal per-person split math (defaults to 1).
business_idYesVerified venue business_id with a priced structured menu (e.g. "slice-pizzeria-kdh").
destinationNoTown or city ID (for example: "annapolis", "ocean_city", "kill_devil_hills", "wharf_dc", "falmouth", "kingston"). Optional when connected to /food/:destination/mcp.
fulfillment_modeNoTarget fulfillment channel (defaults to "pickup").
include_shared_surface_offerNoWhen true, includes a ready atlas.shared_surface.v1 multi-phone table offer payload.

Output Schema

NameRequiredDescriptionDefault
okYes
totalsNo
menu_sha256No
direct_order_handoffNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / destination / description
      Previous value: -"Destination identifier slug (e.g. \"annapolis\", \"ocean_city\", \"kill_devil_hills\", \"falmouth\", \"kingston\"). Optional when connected to a per-destination endpoint like /food/annapolis/mcp."New value: +"Town or city ID (for example: \"annapolis\", \"ocean_city\", \"kill_devil_hills\", \"wharf_dc\", \"falmouth\", \"kingston\"). Optional when connected to /food/:destination/mcp."
    • changedInput schema / properties / items / items / properties / addons / description
      Previous value: -"Optional toppings or add-ons priced deterministically from the venue customization_catalog (e.g. [\"pepperoni\", \"mushroom\", \"fresh basil\"] or [\"grilled chicken\"])."New value: +"Optional toppings or add-ons from the restaurant menu (for example: [\"pepperoni\", \"mushroom\"])."
    • changedInput schema / properties / items / items / properties / assigned_seat / description
      Previous value: -"Optional guest seat number (1 to 30) for per-seat split and atlas.shared_surface.v1 table placement."New value: +"Optional seat number (1 to 30) so each guest sees their own share of the bill."
    • changedInput schema / properties / items / items / properties / item_name / description
      Previous value: -"Menu item name or item_id from food_get_venue_menu."New value: +"Dish name or item_id from food_get_venue_menu."
    • changedInput schema / properties / items / items / properties / notes / description
      Previous value: -"Optional preparation note (confirm severe allergies directly with the kitchen)."New value: +"Optional kitchen note (always confirm severe allergies directly with the restaurant)."
    • changedInput schema / properties / items / items / properties / quantity / description
      Previous value: -"Quantity of this item (1 to 50; defaults to 1)."New value: +"How many of this dish to add (1 to 50; defaults to 1)."
    • changedInput schema / properties / items / items / properties / selected_choice / description
      Previous value: -"Optional required choice selection from item choice_options (e.g. wing sauce \"Sweet Chili\" or \"Old Bay\")."New value: +"Optional sauce or flavor choice from the item options (for example: \"Sweet Chili\" or \"Old Bay\")."
    • changedInput schema / properties / items / items / properties / variant_index / description
      Previous value: -"Zero-based size/variant index for multi-price items (e.g. 0 for 14\" pie or individual salad, 1 for 16\" pie or Tray feeds 4-6)."New value: +"Zero-based size option when a dish has multiple sizes (for example: 0 for 14-inch pie, 1 for 16-inch pie)."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, but the description adds genuinely new operational facts: the call is free, needs no API key, never places a charge, and returns HTTP 422 rather than guessing market prices. The 422 failure mode in particular tells the agent how to interpret an error response, which no structured field conveys.

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?

Three short sentences: purpose and output first, the sibling exclusion second, behavioral constraints third. Every clause carries information the agent needs, with no restatement of the name or title.

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 7-parameter pricing tool with an output schema, the description covers the gaps that matter: cost and auth requirements, the no-charge guarantee, and the refusal behavior on unknown prices. Return-value structure is delegated to the output schema, which is appropriate.

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 100%, so every parameter (items, tip_pct, party_size, business_id, destination, fulfillment_mode, include_shared_surface_offer) is already documented in the schema, including defaults and ranges. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies.

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?

The description names a specific computation over a specific resource: exact subtotal, local food/alcohol tax, tip, per-person split, and ordering links for a known set of menu items. It also explicitly separates itself from food_recommend_group_order, so an agent can route between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a positive trigger ("when you already know which menu items a group wants") and a negative trigger ("when you still need help picking dishes for guests with different diets"), plus the exact alternative tool to use in that case. This is explicit when/when-not/alternative 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