mhlb_print_orders
Generate a printable PDF of lunch order details for one date and selected students, returning a file path, base64, or expiring download link.
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. Locally the PDF is written to disk and its path returned (or the bytes inline as base64 with inline: true); on a hosted server it comes back as a signed, expiring download link (url, expiresAt).
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": {
"date": "<date>",
"studentIds": "<studentIds>"
},
"name": "mhlb_print_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The lunch date to report on (YYYY-MM-DD). | |
| inline | No | Return the PDF as base64 in the result instead of writing it to a file. Default false. On a hosted server a report over the inline limit comes back as a download link instead. | |
| filename | No | Output filename. Defaults to "Orders Details <date>.pdf". | |
| studentIds | Yes | Students to include — at least one. An empty list makes the endpoint fail. | |
| orderStatus | No | Order status to report: 0 = Pending, 1 = Paid (default), 2 = Credited. |