Skip to main content
Glama

Extract a receipt into a local report

abox_receipt_extract

Runs local OCR on JPEG, PNG or WebP receipt images to write suggested fields into JSON or CSV for human review, keeping text and amounts on-device without uploads.

Instructions

Run bundled English printed-text OCR on a local JPEG, PNG or WebP and write suggested receipt fields into JSON or CSV. All fields require human review; verification covers report structure, not recognition accuracy. Text, merchants and amounts stay in the local report. No uploads, model downloads, currency lookup or account access. Requires a local browser.

Input Schema

NameRequiredDescriptionDefault
formatNojson
input_pathYesAbsolute local filesystem path. URLs and network shares are refused.
output_pathYesAbsolute local filesystem path. URLs and network shares are refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A3.9/5.0
Behavior5/5

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

The description adds significant behavioral context beyond annotations: it discloses that fields require human review, that verification covers structure not accuracy, that data stays local with no uploads or network access, and that a local browser is required. These details are crucial for correct use and are not contradicted by annotations.

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 description is front-loaded with the primary action and then efficiently lists key constraints and caveats. Every sentence adds value, though it could be slightly more compact without losing meaning.

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?

Given the lack of an output schema and the tool's complexity, the description covers most essential aspects: input/output formats, accuracy limitations, privacy, and environment requirements. It could be improved by briefly indicating what receipt fields are extracted, but overall it provides sufficient context for an agent to invoke the tool correctly.

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 coverage is 67%, with input_path and output_path having descriptions. The description adds meaning by specifying accepted image types (JPEG, PNG, WebP) for input_path and clarifying that format controls JSON or CSV output. However, it does not add details about output_path beyond what the schema already states.

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 states a specific verb (Run OCR) and resource (receipt) and clarifies input/output formats. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling abox_document_scan, which could also be used for scanning documents.

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 is implied by the description (English printed-text receipts in JPEG/PNG/WebP), but there is no explicit guidance on when to use this tool versus alternatives like abox_document_scan. No exclusions or alternative suggestions are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.