Skip to main content
Glama

Moneda

reparse_receipt

Re-run the OCR / LLM extraction pipeline on an existing receipt and return the refreshed fields. Use this when the user reports incorrect extraction or after a model upgrade. Refuses DELETED rows and rows without a stored file. Synchronous — the response carries the post-extraction snapshot.

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": {
      "receiptId": "<receiptId>"
    },
    "name": "reparse_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptIdYesReceipt id to reparse (from list_receipts output).

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?

Adds real value beyond the annotations by disclosing refusal preconditions (DELETED rows, rows without a stored file) and that the call is synchronous with the snapshot in the response. The notable gap is that readOnlyHint=false implies state mutation, but the description never says whether the refreshed fields are persisted back to the receipt or are only returned.

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?

Three tight sentences with the action first, then usage triggers, then the constraints and response semantics. No filler, and the most decision-relevant information is front-loaded.

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?

With no output schema, the description carries the return-value burden and does so at a high level ('post-extraction snapshot', 'refreshed fields'), plus it covers preconditions and sync behavior. It stops short of saying whether the refresh is persisted or how failures surface, which matters for a non-read operation.

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 100% and the single receiptId is fully documented in the schema. The description adds nothing parameter-specific beyond implying the row must exist, so the baseline 3 is appropriate.

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 (re-run extraction pipeline) on a specific resource (an existing receipt), and clarifies the output is refreshed fields. This is clearly distinguishable from get_receipt (which just reads) in the sibling list.

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?

Gives concrete triggers: 'when the user reports incorrect extraction or after a model upgrade.' It doesn't explicitly set up alternatives (e.g., use get_receipt to inspect first, or update_receipt_amounts to correct manually), but the usage context is unambiguous.

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