Skip to main content
Glama

Bite2u

Prepare a Bite2u order

prepare_order
Read-onlyIdempotent

Use this when the user has chosen dishes from a menu returned by get_menu and wants to order. Pass the restaurant slug and the items (dish_id from get_menu, quantity, and size_id / options when the dish has sizes or option groups). It checks every item against the current menu and returns the lines, the subtotal in the restaurant's currency, any problem (for example a required option still to choose) and checkout_url: the restaurant page on bite2u.com with this basket already in it, where the user completes the order and payment. This tool does not place or charge the order.

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": {
      "slug": "<slug>",
      "items": "<items>"
    },
    "name": "prepare_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe restaurant slug from search_restaurants / get_menu.
itemsYes

Output Schema

NameRequiredDescriptionDefault
noteNo
linesYes
currencyNo
problemsNo
subtotalYes
restaurantYes
checkout_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, closed-world), the description discloses the validation behavior ('checks every item against the current menu'), the failure surface (returns 'any problem, for example a required option still to choose'), and that payment happens externally at checkout_url. This resolves the apparent tension between preparing an order and readOnlyHint=true.

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 sentences, front-loaded with the trigger, then the inputs, then the return contract, ending with the crucial non-placement caveat. Parenthetical examples ('a required option still to choose') clarify without padding, and nothing is repeated from the schema verbatim.

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 two-parameter tool with an output schema, the definition covers everything an agent needs: precondition, input sourcing, validation semantics, error reporting, and the hand-off to checkout. The non-payment clarification is exactly the kind of fact an agent could otherwise get wrong.

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?

With 50% schema description coverage, the description adds real meaning: slug is the restaurant slug, dish_id must come from get_menu, and size_id/options are required only when the dish has sizes or option groups. It omits the per-item `note` field and the quantity/array limits (max 50, max 40 items), which the schema carries but the prose never surfaces.

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 verb and resource ('prepare a Bite2u order') and immediately states the concrete effect: validate items against the current menu and return lines, subtotal, problems and a checkout_url. It is clearly distinguishable from the siblings get_menu and search_restaurants, which supply the inputs rather than build a basket.

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 an explicit trigger ('when the user has chosen dishes from a menu returned by get_menu') and an explicit boundary ('This tool does not place or charge the order'), so the agent knows both when to call it and what it must still do afterwards. The prerequisite chain to get_menu is stated rather than inferred.

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