Skip to main content
Glama
Paxaver MCP Server

Paxaver MCP Server

Official

Create Lunch Order Draft

create_lunch_order_draft

Creates an unpaid draft lunch order with one or more items so users can review choices and totals before payment; nothing is charged until the draft is paid.

Instructions

Creates an unpaid draft lunch order with one or more items - nothing is charged until pay_lunch_order_draft commits it. Use for multi-item orders or when the user should review the total first; each items entry pairs a menu_item_id with a quantity and optional selected_choices. When get_lunch_menu shows an item has choice groups, ask the user for each required group one at a time, offer the optional groups, then confirm the item, its choices and the total before calling - a required group without a pick is rejected. The draft total is the sum of item prices times quantities plus choice price adjustments. To change or abandon the draft, use update_lunch_order_draft or discard_lunch_order_draft. FINANCIAL - confirm student, items, choices and date before calling. Collect each required input one at a time and confirm the details with the user before calling.

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": {
      "menu_date": "<menu_date>",
      "items": "<items>"
    },
    "name": "create_lunch_order_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesLine items to order; get IDs from get_lunch_menu. The server prices each item from the menu - a client-sent price is ignored
menu_dateYesDate the lunch is served, YYYY-MM-DD
student_idNoStudent ID (must be your own student; from get_my_context); required when the user has more than one student, defaults to their only student
school_slugNoSchool slug (from get_my_context); defaults to the school of student_id, else the active school

Output Schema

NameRequiredDescriptionDefault
idNoDraft order ID - pass to pay_lunch_order_draft
itemsNoDraft line items
statusNoOrder status (draft)
menuDateNoDate the lunch is served, YYYY-MM-DD
studentIdNoStudent the order is for
schoolSlugNoSchool the order was placed at
itemTotalCentsNoItem total in cents - charged on finalize

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.7.8
    • addedInput schema / properties / items / items / properties / selected_choices
      Added value: +{
      +  "description": "Menu picks for the item (toppings, sizes, ...); group_id and option_id come from the item's choiceGroups in get_lunch_menu. Every required group needs a pick",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "group_id": {
      +        "description": "Choice group ID from the item's choiceGroups in get_lunch_menu",
      +        "type": "string"
      +      },
      +      "option_id": {
      +        "description": "Option ID within that group",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "group_id",
      +      "option_id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / school_slug / description
      Previous value: -"School slug (from get_my_context); defaults to the active school"New value: +"School slug (from get_my_context); defaults to the school of student_id, else the active school"
  2. Changed3 schema fields changedv2.7.7
    • changedInput schema / properties / items / description
      Previous value: -"Line items to order; get IDs and prices from get_lunch_menu"New value: +"Line items to order; get IDs from get_lunch_menu. The server prices each item from the menu - a client-sent price is ignored"
    • removedInput schema / properties / items / items / properties / price_cents
      Removed value: -{
      -  "description": "Unit price in cents from get_lunch_menu",
      -  "type": "integer"
      -}
    • changedInput schema / properties / items / items / required
      Previous value: -[
      -  "menu_item_id",
      -  "menu_item_name",
      -  "price_cents",
      -  "quantity"
      -]New value: +[
      +  "menu_item_id",
      +  "menu_item_name",
      +  "quantity"
      +]
  3. Addedv2.5.1

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=false, idempotent=false): it explains that nothing is charged until payment, how the draft total is computed, that a missing required choice group is rejected, and that this is a financially sensitive action requiring confirmation. These are non-obvious behavioral facts an agent cannot derive from the annotations.

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?

Front-loaded with the core action and the key safety fact (nothing charged yet), and the workflow detail follows logically. However, the closing 'FINANCIAL - confirm student, items, choices and date before calling' and the final 'confirm the details with the user before calling' repeat the earlier confirmation instruction, adding redundancy.

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 non-idempotent mutation with an output schema, it covers everything an agent needs: the precondition menu lookup, required choice resolution, total computation, confirmation requirement, and the follow-up tools for editing or discarding. Nothing material is left to inference.

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?

Schema coverage is already 100%, so the baseline is 3; the description adds some meaning on top, explaining that each items entry pairs a menu_item_id with a quantity and optional selected_choices, and clarifying total computation via price times quantity plus choice adjustments. It largely restates schema-documented points (server-side pricing, required groups) rather than adding new field-level rules.

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 ('Creates an unpaid draft lunch order with one or more items') and immediately distinguishes it from the committing action, pay_lunch_order_draft. An agent can tell it apart from update/discard/pay siblings without opening any 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?

Gives explicit selection criteria ('multi-item orders or when the user should review the total first') and names the alternatives for other paths: update_lunch_order_draft and discard_lunch_order_draft to change/abandon, pay_lunch_order_draft to commit. It also spells out the prerequisite workflow (consult get_lunch_menu, resolve required choice groups, confirm total) before calling.

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