invoice_pdf
Invoice PDF (with pay-in-crypto QR) ($0.01 per call, paid via MPP on Tempo). Generate a clean, multi-page invoice PDF from JSON: seller/buyer blocks, line items with per-line tax, discount, shipping, totals and amount due; optional pay-with-crypto block with a scannable QR (EIP-681 for USDC/USDT/ETH on Base, Ethereum, Arbitrum, Optimism, Polygon; Solana Pay; bitcoin:) prefilled with the amount due. Returns application/pdf (format=json for base64 + totals). Nothing stored. HTTP POST https://mpp-biz.fmf-x402.workers.dev/invoice/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": "invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| paid | No | {tx_hash, date, explorer_url} | |
| buyer | No | ||
| items | Yes | [{description, quantity, unit_price, tax_rate?}] up to 200 | |
| notes | No | ||
| terms | No | ||
| accent | No | hex colour | |
| crypto | No | {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) | |
| footer | No | ||
| format | No | json returns base64 + totals | |
| number | No | ||
| seller | No | {name, address, email, phone, tax_id, wallet} | |
| currency | No | USD, CAD, EUR, USDC, ETH... | |
| discount | No | amount or "10%" | |
| due_date | No | ||
| shipping | No | ||
| tax_rate | No | percent, applied to items without their own tax_rate | |
| page_size | No | ||
| tax_label | No | ||
| amount_paid | No |