Skip to main content
Glama

parse_receipt

Parse local receipt files (PDF, image, or text) and redact PII/PHI before extracting vendor, date, amount, currency, receipt number, suggested category, and redacted text for reimbursement.

Instructions

Parse a local receipt (PDF, image, or text) 100% locally with PII/PHI redaction.

Returns vendor, date, amount, currency, receipt_number, suggested_category, and redacted raw text (Israeli IDs, case numbers, phone numbers, and doctor names are masked before returning to the model).

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": {
      "file_path": "<file_path>"
    },
    "name": "parse_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does substantial work: it discloses local-only processing (a meaningful privacy guarantee), that redaction happens before content reaches the model, and exactly which entity classes are masked (Israeli IDs, case numbers, phones, doctor names). It stops short of failure modes — unsupported file types, size limits, or what happens when a path is unreadable — which keeps it off 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.

Conciseness4/5

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

Two tight sentences with the core capability and privacy guarantee front-loaded. The enumerated return fields are somewhat redundant given an output schema exists, but they are compact and read as a quick orientation rather than padding.

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 one-parameter local file parser with an output schema available, the description covers purpose, input formats, privacy behavior, and redaction scope — enough for an agent to call it correctly. The remaining gap is error/edge-case behavior, which is minor at this complexity level.

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 0% for the single file_path parameter, so the description must compensate. It partially does by naming the accepted file types, which is the main ambiguity for a path argument, but it never clarifies path form (absolute vs relative), whether the file must already exist locally, or size constraints.

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?

States a specific verb (parse) and resource (local receipt) plus the accepted input formats (PDF, image, text) and the defining property that processing is 100% local with PII/PHI redaction. That combination separates it cleanly from the sibling tools, which are session/draft/search utilities rather than file parsers.

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 rather than stated: an agent can infer this is the tool for extracting data from a receipt file, but the description gives no explicit when-to-use trigger, no exclusions (e.g. non-receipt documents, remote URLs), and names no alternative. Guidance is adequate but requires inference.

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