Skip to main content
Glama
chrischall

myhotlunchbox-mcp

by chrischall

mhlb_print_orders

Generate a printable PDF of lunch order details for a specific date and student list. Filter by order status (pending, paid, credited) and optionally get base64 output.

Instructions

Generate the printable order-details PDF for a single lunch date. Note this is one date, not a range, and studentIds is required — the endpoint fails if it is empty, or if no order matches the date and status you ask for. Get both from mhlb_get_calendar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesThe lunch date to report on (YYYY-MM-DD).
inlineNoReturn the PDF as base64 in the result instead of writing it to a file. Default false.
filenameNoOutput filename. Defaults to "Orders Details <date>.pdf".
studentIdsYesStudents to include — at least one. An empty list makes the endpoint fail.
orderStatusNoOrder status to report: 0 = Pending, 1 = Paid (default), 2 = Credited.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only provide readOnlyHint=false, destructiveHint=false, and openWorldHint=true. The description adds valuable behavioral details beyond those: the endpoint fails if studentIds is empty and also fails if no order matches the date/status. This helps an agent anticipate errors without contradicting 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, no filler. The primary purpose is front-loaded, followed by critical constraints and a pointer to the data source. Every sentence contributes value.

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?

For a 5-parameter tool with no output schema and modest annotations, the description covers purpose, input source, key failure modes, and scope. It does not explain the inline/filename output behavior, but the schema fully covers those, so nothing essential is missing.

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%, with every parameter already documented (date format, inline base64, filename default, studentIds minItems, orderStatus const values). The description reinforces studentIds being required and failure-prone, but does not add new semantic information beyond the schema, so baseline 3 is appropriate.

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 opens with a specific verb and resource ('Generate the printable order-details PDF') and immediately scopes it to 'a single lunch date,' which distinguishes it from sibling print tools like mhlb_print_calendar and mhlb_print_transaction. The resource and scope are unambiguous.

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

Usage Guidelines4/5

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

The description clearly instructs where to obtain the required inputs ('Get both from mhlb_get_calendar') and flags the single-date constraint. It does not explicitly name alternatives or say when not to use the tool, but the usage context is clear enough for an agent to route correctly.

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