Skip to main content
Glama

FMF Tools Business Docs

receipt_pdf

Receipt PDF (PAID stamp, tx hash) ($0.01 per call, paid via MPP on Tempo). Generate a receipt PDF with a PAID stamp, totals, amount paid and balance, plus an on-chain payment record (tx hash, date, explorer link) and the crypto payment details. Same JSON as /invoice/pdf. Returns application/pdf (format=json for base64). HTTP POST https://mpp-biz.fmf-x402.workers.dev/receipt/pdf. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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": {
      "items": "<items>"
    },
    "name": "receipt_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
paidNo{tx_hash, date, explorer_url}
buyerNo
itemsYes[{description, quantity, unit_price, tax_rate?}] up to 200
notesNo
termsNo
accentNohex colour
cryptoNo{network: base|ethereum|arbitrum|optimism|polygon|solana|bitcoin, token: USDC|USDT|ETH|BTC, address, amount?, chain_id?, token_address?, decimals?, memo?} adds a pay-with-crypto block + QR (EIP-681 / solana: / bitcoin: URI)
footerNo
formatNojson returns base64 + totals
numberNo
sellerNo{name, address, email, phone, tax_id, wallet}
currencyNoUSD, CAD, EUR, USDC, ETH...
discountNoamount or "10%"
due_dateNo
shippingNo
tax_rateNopercent, applied to items without their own tax_rate
page_sizeNo
tax_labelNo
amount_paidNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses per-call pricing, the payment/auth mechanism, the critical caveat that 'This MCP wrapper does not settle payment by itself', the return MIME type, and the base64 alternative via format=json. It does not cover failure modes (e.g. behavior when the Payment Authorization header is absent) or rate limits, which keeps it short of a 5.

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 lead sentence front-loads the artifact, its distinguishing features and cost, and the remaining sentences cover return type, endpoint and the payment caveat in a logical order. It is dense and slightly run-on, and the raw HTTP URL is more operational noise than selection signal, but nothing is redundant.

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

Completeness3/5

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

For a 20-parameter tool with nested objects and no output schema, the description usefully explains the return (application/pdf or base64 JSON) and the payment prerequisite. However it leaves most of the large, nested input surface undocumented and gives no guidance on constructing the required items array, so an agent still has to reverse-engineer most of the call from the schema.

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 description coverage is 45% across 20 parameters, so the description should compensate more than it does. It adds meaning for a few fields (the paid object as tx_hash/date/explorer link, the crypto block, amount paid/balance, format=json), but the majority — items, seller, buyer, currency, discount, tax_rate, page_size, shipping — get no elaboration beyond the schema, and the sole required parameter 'items' is never mentioned.

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 artifact ('Generate a receipt PDF') plus the distinguishing content: PAID stamp, totals, amount paid/balance, on-chain tx record and crypto payment block. It also positions the tool against the sibling by noting 'Same JSON as /invoice/pdf', so an agent can tell receipt vs invoice apart without opening either schema.

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?

Gives concrete invocation context: it costs $0.01 per call, is paid via MPP on Tempo, requires an MPP Payment Authorization header, and points to mppx against the HTTP route as the alternative. What's missing is an explicit 'use receipt_pdf when the customer has paid, use invoice_pdf when billing' statement, but the framing makes the split inferable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources