Skip to main content
Glama

Invoice & Receipt Extract

extract_invoice

Extract structured data from an invoice or receipt file. Accepts PDF, PNG, JPEG, WEBP, or plain text as base64.

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_base64": "<file_base64>",
      "mime": "<mime>"
    },
    "name": "extract_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
mimeYesMIME type of the provided file.
file_base64YesBase64-encoded file content, max 8 MB before base64 encoding.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioural burden and largely does not meet it. It never states that the operation is non-destructive/read-only, whether the uploaded file is retained or logged, what happens on extraction failure, or anything about latency, cost, or accuracy limits. The only concrete facts, max 8 MB and the accepted MIME types, are already present in the schema, so they add little beyond structured data.

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 short sentences with no filler, front-loaded with the purpose followed by the input contract. It is appropriately sized for a two-parameter tool, though the format list in sentence two is largely redundant with the schema enum.

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

Completeness3/5

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

The tool is simple (two required parameters, no nesting) and the description covers its purpose and accepted inputs, which is the minimum an agent needs to invoke it. Because there is no output schema, the description should say something about the returned structure or fields, and it does not, so the agent knows how to call it but not what it will receive.

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% and both parameters are documented in the schema itself, so the baseline of 3 applies. The description's mention of PDF, PNG, JPEG, WEBP and plain text plus base64 merely restates the mime enum and the file_base64 encoding rule rather than adding new meaning such as charset requirements for text/plain or how a multi-page PDF is handled.

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 leads with a specific verb and resource: "Extract structured data from an invoice or receipt file." That is far more informative than the bare name, and the scope (invoice/receipt only) is clear. It falls short of a 5 only because there are no sibling tools to differentiate from and it does not characterise the shape of the extracted data.

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 only implied: the first sentence establishes the domain (invoices and receipts) and the second enumerates the accepted input formats, which implicitly tells the agent when this tool applies. There is no explicit statement of when to prefer this over another tool, no preconditions, and no guidance on handling unsupported or multi-document files.

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.