Skip to main content
Glama
Paxaver MCP Server

Paxaver MCP Server

Official

Update Lunch Order Draft

update_lunch_order_draft
DestructiveIdempotent

Update an unpaid draft lunch order's items or service date before finalizing it. Replaces line items, applies required choices, and recomputes the total from menu prices.

Instructions

Replaces the items and/or menu_date of an unpaid draft order before it is finalized - the caller must own the draft and it must still be in draft status (order_id from create_lunch_order_draft). Pass the complete items list: it replaces the draft's items wholesale and the total is recomputed from menu prices times quantity plus choice adjustments. When an item has choice groups, ask the user for each required group one at a time and pass the picks as selected_choices, same as create_lunch_order_draft. Only draft orders can be updated; once finalized, use cancel_my_lunch_order. WRITE - confirm the new contents, choices and total with the user. 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": {
      "order_id": "<order_id>"
    },
    "name": "update_lunch_order_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoReplacement line items (menu_item_id and quantity from get_lunch_menu, plus selected_choices for menu picks); replaces all existing items when provided
order_idYesDraft order ID from create_lunch_order_draft - must still be in draft status
menu_dateNoNew date the lunch is served, YYYY-MM-DD

Output Schema

NameRequiredDescriptionDefault
statusNoOrder status (draft)
orderIdNoUpdated draft order ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.7.8
    • changedInput schema / properties / items / description
      Previous value: -"Replacement line items (menu_item_id from get_lunch_menu + quantity); replaces all existing items when provided"New value: +"Replacement line items (menu_item_id and quantity from get_lunch_menu, plus selected_choices for menu picks); replaces all existing items when provided"
    • addedInput schema / properties / items / items
      Added value: +{
      +  "properties": {
      +    "menu_item_id": {
      +      "description": "Menu item ID from get_lunch_menu",
      +      "type": "string"
      +    },
      +    "menu_item_name": {
      +      "description": "Item display name from get_lunch_menu",
      +      "type": "string"
      +    },
      +    "quantity": {
      +      "description": "Number of servings",
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "selected_choices": {
      +      "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"
      +    }
      +  },
      +  "required": [
      +    "menu_item_id",
      +    "menu_item_name",
      +    "quantity"
      +  ],
      +  "type": "object"
      +}
  2. Addedv2.5.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real behavioral context beyond them: items are replaced wholesale, the total is recomputed from menu prices times quantity plus choice adjustments, and the caller must confirm the new contents with the user before calling.

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?

Dense but well front-loaded, leading with the replacement scope and constraints. The final sentence about collecting inputs one at a time and confirming details partly repeats the earlier 'WRITE - confirm the new contents, choices and total with the user', so it is slightly redundant.

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 3-parameter mutation tool with an output schema, full schema coverage, and annotations, the description covers ownership, status gating, replacement semantics, total recomputation, and confirmation workflow — nothing an agent needs to call it correctly is missing.

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 100% so the baseline is 3, but the description adds genuine meaning: the items list must be complete because it replaces wholesale, the total recompute formula, and how selected_choices map to required choice groups one at a time.

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 ('Replaces the items and/or menu_date of an unpaid draft order') and ties it to the draft lifecycle, so an agent can distinguish it from create_lunch_order_draft and the finalize path without opening a 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 preconditions (caller must own the draft, order_id from create_lunch_order_draft, must still be in draft status), an explicit when-not with the alternative named ('once finalized, use cancel_my_lunch_order'), and points to create_lunch_order_draft for the choice-picking convention.

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