Skip to main content
Glama
myhotlunchbox-mcp

myhotlunchbox-mcp

by chrischall

mhlb_print_transaction

Generate a printable receipt PDF for a specific transaction ID, returning the local file path, inline base64, or a hosted download link using the account’s real transaction data.

Instructions

Generate the printable receipt PDF for one transaction. Pass the transaction id from mhlb_list_transactions; the server fetches that transaction’s detail record and has the endpoint render it, so the receipt always reflects the account’s real data. 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": {
      "transactionId": "<transactionId>"
    },
    "name": "mhlb_print_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
inlineNoReturn 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.
filenameNoOutput filename. Defaults to "Transaction.pdf".
isCreditTypeNoRender as a credit rather than a payment. Default false.
transactionIdYesTransaction id (the `id` field from mhlb_list_transactions).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.3.1
    • changedInput schema / properties / inline / description
      Previous value: -"Return the PDF as base64 in the result instead of writing it to a file. Default false."New value: +"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."
  2. Changed3 schema fields changedv1.2.7
    • removedInput schema / properties / transaction
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "The transaction detail object, as returned by mhlb_get_transaction.",
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / transactionId
      Added value: +{
      +  "description": "Transaction id (the `id` field from mhlb_list_transactions).",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "transaction"
      -]New value: +[
      +  "transactionId"
      +]
  3. 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"
  4. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true) it discloses the full call semantics: the server re-fetches the transaction detail so output reflects real data, and the return channel varies by environment – local file path, base64 with inline:true, or a signed expiring link (url, expiresAt) on a hosted server. That environment-dependent behavior and expiry detail cannot be derived from annotations or schema.

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?

Two sentences, front-loaded with the action, then prerequisites, then return-shape variants. It is dense but every clause carries information; the parenthetical return-value list is slightly compressed but not padded.

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?

With no output schema, the description carries the return-value burden and does so thoroughly: file path, inline base64, or signed expiring URL, plus the note that the receipt is rendered from the live detail record. Nothing an agent needs to invoke it or interpret the result 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 baseline is 3; the description still adds cross-parameter meaning, explaining that inline:true yields base64 locally but falls back to a download link when a hosted server's inline limit is exceeded, and that the PDF is written to disk by default. The isCreditType and filename parameters are left to the schema, which is adequate given full coverage.

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 receipt PDF for one transaction.' The 'one transaction' scoping plus the receipt-specific framing separates it from siblings like mhlb_print_orders and mhlb_print_calendar, and from read-only lookups like mhlb_get_transaction.

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?

It tells the agent where the id comes from ('Pass the transaction id from mhlb_list_transactions'), which is the practical prerequisite for calling it. It does not explicitly state when-not to use it (e.g., bulk receipts or preview-only flows), so guidance is clear but not exhaustive.

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