Skip to main content
Glama

Check a receipt

check_receipt

Extracts the fields of a receipt or invoice (image or PDF, by https URL or base64), checks its arithmetic, tax rate and dates, scores signs that it was edited or AI-generated (with reasons), and reports whether the same receipt was submitted before. Costs 1 credit, refunded if the file can't be read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoFor MCP clients that can't send an Authorization header. Prefer the header.
image_urlNoPublic https URL of the receipt image or PDF.
mime_typeNoOnly needed with image_base64 when the type can't be sniffed.
image_base64NoThe file's bytes, base64-encoded (a data: URL prefix is fine). Max 8 MB.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
checksYesDeterministic checks: arithmetic, tax plausibility, dates, currency.
fieldsYes
checkIdYes
duplicateYes
authenticityYesrisk: 0 = looks genuine, 1 = almost certainly edited, generated or reused. Signals with reasons, not a verdict.
creditsRemainingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The description discloses high-value behavior that the annotations do not: a 1-credit cost with a refund when the file is unreadable, and an implicit persistence/duplicate-detection side effect (consistent with readOnlyHint=false). It also tells the agent the result includes reasons for AI/edit scoring.

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 core capability is front-loaded in one dense but well-structured sentence, with cost/refund as a distinct second sentence. It is long, but nearly every clause maps to a real user-visible behavior, so little is wasted.

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

Completeness5/5

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

For a tool with an output schema, return values need not be explained; the description instead covers the input modes, billing, refund condition, duplicate check, and detection scoring. Nothing an agent needs to invoke it correctly is missing.

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 each parameter (api_key, image_url, mime_type, image_base64) is already documented and the baseline is 3. The description only restates the URL-vs-base64 duality and file types, adding no syntax or constraint detail beyond the schema.

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 states a specific verb-and-resource with enumerated sub-operations: extract fields, check arithmetic/tax/dates, score edit/AI-generation signals, and duplicate-submission lookup. An agent can distinguish this from every sibling (create_api_key, create_claim_link, get_account, report_feedback) without opening a 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?

It gives clear triggering context (receipt/invoice verification) and acceptable inputs (image or PDF, https URL or base64), which frames when the tool applies. It does not name exclusions or alternative tools, but the sibling set is unrelated, so there is little genuine ambiguity to resolve.

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