Skip to main content
Glama

buy_meal

Buy exactly one menu item with credit after confirmation, ensuring the current price does not exceed the provided max_price.

Instructions

Spend credit to buy exactly one menu item. User must confirm; fresh price cannot exceed max_price.

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": {
      "canteen": "<canteen>",
      "day": "<day>",
      "menu_id": "<menu_id>",
      "max_price": "<max_price>"
    },
    "name": "buy_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYes
canteenYes
menu_idYes
confirmedNo
max_priceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the important traits: this mutates state by spending credit, it is gated on user confirmation, and it enforces a price guard ('fresh price cannot exceed max_price') suggesting a re-check at execution time. It omits irreversibility/refund behavior and what happens when the guard trips, which keeps it from 5.

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?

Two sentences, zero filler, with the primary action first and the constraints after. Slight deduction because 'fresh price' is ambiguous wording that a reader must interpret as a re-fetched price.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a financial mutation with 5 parameters, no annotations, no output schema, and 0% schema coverage — the highest-burden case. The description covers the safety story but leaves the identifier parameters and the return/failure behavior undocumented, so an agent cannot call it confidently from the definition alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 5 parameters, so the description must compensate and largely does not. It clarifies max_price (price ceiling) and hints at confirmed via 'user must confirm', but day, canteen, and menu_id have no meaning, format, or source given anywhere.

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 ('buy exactly one menu item') and adds the payment mechanism ('spend credit'), which separates it from browse-oriented siblings like menu, suggest_meals, and watch_meal. It does not name a sibling explicitly, so it stops short of 5.

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

Usage Guidelines3/5

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

'User must confirm' implies a two-step flow and is a real precondition, but the description never states when to choose this over watch_meal (monitor price) or cancel_meal, nor what to do when the price cap fails. Usage is implied rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.