Skip to main content
Glama

FMF Tools Business Docs

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

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

A3.9/5.0
Behavior5/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 so well: it discloses the per-call cost, the payment authorization requirement, the fact that this wrapper does not settle payment, that nothing is stored, that output is application/pdf (or base64 + totals via format=json), and the underlying HTTP endpoint. These are exactly the behavioral traits an agent needs before invoking a paid external generator.

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 content is front-loaded and dense: the artifact, its contents, the return type, and the payment caveat all appear in the first few clauses. It is a long run-on with heavy parenthetical nesting, but almost every clause contributes a distinct fact, so little is wasted.

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 20-parameter generator with no output schema and no annotations, the description covers the essentials: what is produced, what it returns, that nothing is persisted, and how payment is authorized. The remaining shortfall is field-level detail for the many under-documented parameters, but nothing critical to invoking it correctly is absent.

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 only 45% across 20 parameters, so the description needs to compensate, and it partially does by naming the domain concepts each parameter group serves: per-line tax rates versus a fallback tax_rate, discount, shipping, amount due, and the crypto block's network/token/URI schemes (EIP-681, Solana Pay, bitcoin:). But most individual fields — date formats, paid object handling, number, terms, footer, accent — get no added meaning beyond what the schema already says, leaving real gaps.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 a clean, multi-page invoice PDF from JSON' — and enumerates exactly what the artifact contains (seller/buyer blocks, line items, tax, discount, shipping, totals, optional crypto QR). That content profile makes it clearly distinct from a receipt or a bare payment-URI tool. It never names a sibling, so the differentiation is implicit rather than stated.

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

Usage Guidelines3/5

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

Usage guidance is present but is about mechanism rather than selection: it states the tool costs $0.01 per call, must be called with an MPP Payment Authorization header, and that the wrapper does not settle payment itself (use mppx against the HTTP route as an alternative). There is no statement of when to choose this over a receipt or crypto URI tool, and no explicit exclusions.

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