Skip to main content
Glama

Web Reader Pro

Invoice & receipt reader: vendor, dates, line items, taxes and totals as JSON, with an independent maths check

read_invoice

Reads an invoice, bill or receipt (text, web page, PDF or image URL) and returns vendor, customer, invoice number, dates, currency, line items, discounts, taxes, shipping, total and amount due. Then re-does the maths itself: quantity x price per line, lines vs subtotal, tax rates, subtotal + tax = total, paid vs due, due date after issue date. maths_ok=false means a human should look before paying. Not charged if the document is not an invoice. Price 0.02 USDC per call; first 3 calls per day free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoInvoice/receipt URL (PDF, web page, JPG/PNG)
textNoOr the invoice text
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the full behavioral burden and does a lot of it: it discloses the independent arithmetic check, the meaning of maths_ok=false ('a human should look before paying'), the billing model (0.02 USDC per call, first 3/day free) and the no-charge-on-non-invoice rule. It omits failure behavior (what happens with no url and no text, or an unfetchable URL), which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The extraction contract is front-loaded in the first sentence, followed by the differentiator (the maths re-check), then the operational notes on cost and billing. Every sentence carries distinct information, with no filler or repetition of the schema.

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 three-parameter, annotation-free tool with no output schema, the description is nearly complete: it lists returned fields, explains the validation output flag, and covers pricing. The only gap is edge-case behavior when neither url nor text is supplied or when the fetch fails, which an agent would want to know before calling.

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 100%, so the schema already documents the url formats, the text alternative, and the payment field including the free-sample note. The description adds little param-level meaning beyond restating that text is an alternative to a URL; baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Reads an invoice, bill or receipt') and immediately enumerates exactly what is returned (vendor, customer, invoice number, dates, currency, line items, discounts, taxes, shipping, total, amount due). The added maths-verification pass distinguishes it from generic extraction siblings like extract_fields or structure_to_json without needing their schemas.

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 states the accepted input forms (text, web page, PDF, image URL) and a clear usage boundary ('Not charged if the document is not an invoice'), which tells the agent this is scoped to invoices/receipts only. It stops short of explicitly naming alternatives for non-invoice documents, so the agent must infer that other extraction tools are the fallback.

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.