Skip to main content
Glama
Paxaver MCP Server

Paxaver MCP Server

Official

Pay Lunch Order Draft

pay_lunch_order_draft

Commits a draft lunch order and charges the wallet for the item total plus an optional PAC tip; wallet-only payments fail if funds are insufficient, prompting a top-up and retry.

Instructions

Commits a draft order from create_lunch_order_draft and charges the wallet for the item total plus optional tip_cents (donated to the school's PAC). Wallet-only: if the balance cannot cover the full total, the call fails with an error directing the user to open the Paxaver panel and top up the wallet balance, then retry - no card payment is offered through this tool. Not for new orders - use create_lunch_order_draft first. FINANCIAL - confirm the total 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": {
      "order_id": "<order_id>"
    },
    "name": "pay_lunch_order_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesDraft order ID from create_lunch_order_draft - must still be in draft status; already-finalized orders are rejected
tip_centsNoTip in cents (donated to school PAC)

Output Schema

NameRequiredDescriptionDefault
statusNo'finalized' when the wallet covered the full total
orderIdNoOrder ID
tipCentsNoPAC donation added, in cents
itemTotalCentsNoItem total in cents

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.5.1

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses the wallet-only payment model, that no card fallback exists, that insufficient balance is a hard failure with a specific remedy, and that the total must be confirmed with the user first. The one notable gap is retry behavior: with idempotentHint=false, an agent is not told whether re-calling after an ambiguous failure risks a double charge, which matters for a payment tool that the description itself tells users to retry.

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?

The core action and the wallet-only constraint are front-loaded, and the sibling routing appears before the procedural tail. The closing instruction to collect inputs one at a time and confirm details is somewhat boilerplate and partially duplicates the earlier 'confirm the total' directive, keeping it short of a 5.

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

Completeness4/5

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

With an output schema present, return values need not be explained, and the description covers the prerequisites, failure mode, payment source, and confirmation expectation. Only the retry/idempotency question is left unaddressed for what is an irreversible financial mutation.

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 coverage is 100%, so both order_id and tip_cents are already documented, including the draft-status precondition and the PAC donation purpose. The description restates the tip donation and adds that the tip is included in the balance check, but contributes no new syntax or format detail beyond the schema.

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 ('Commits a draft order... and charges the wallet') plus the scope of the charge (item total plus optional tip). It is immediately distinguishable from create_lunch_order_draft, which it explicitly names as the prerequisite step.

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?

Explicitly gives the when-not ('Not for new orders - use create_lunch_order_draft first') and names the fallback path. It also specifies the wallet-only constraint and the exact recovery procedure (open Paxaver panel, top up, retry), so an agent knows what to do when the call fails.

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