Skip to main content
Glama

Subpay Invoice Reader

Read an invoice and check that it adds up

extract_invoice

Reads invoices, bills and receipts from PDF into structured JSON — vendor, customer, dates, PO, line items, discount, tax, shipping, total, balance due — and checks the arithmetic: quantity × unit price, lines to subtotal, tax rate, total and balance due. The response says exactly which figures don't add up. Returns vendor, customer, invoice number, dates, PO, line items, subtotal, discount, taxes, shipping, total, amount paid and balance due, plus checks (passed true/false, or null when the figures aren't printed). $0.04 per page (up to 25 pages) in USDC per successful read via x402, quoted before you pay; failed reads are free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentYesThe PDF, base64-encoded (a data: URL prefix is fine). Max about 3 MB and 25 pages.
fileNameNoOriginal file name, if known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources