Skip to main content
Glama

Invoice processor

invoice_processor

Start an invoice-extraction job. Returns a job handle immediately; fetch vendor, totals, and line items later with get_job. Pass invoiceText, OR filePath + bucket + mimeType from create_invoice_upload_url. To upload a local PDF or image: (1) call create_invoice_upload_url, (2) HTTP PUT the raw bytes to signedUploadUrl with the declared Content-Type before the URL expires, (3) call this tool with the returned path, bucket, and mimeType.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucketNoStorage bucket returned by create_invoice_upload_url. Required together with filePath.
filePathNoStorage path returned by create_invoice_upload_url after you HTTP PUT the raw document bytes.
mimeTypeNoMIME type of the uploaded invoice (the same value declared when minting the upload URL).
invoiceTextNoPasted invoice text to extract. Pass this OR a file reference (filePath + bucket + mimeType).
outputFormatNoResult format. Defaults to json when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), and the description adds meaningful behavior on top: it returns a job handle immediately rather than results, and the signed upload URL must be used before it expires. It does not discuss auth, rate limits, or retry/idempotency implications, but the async contract is well disclosed.

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?

Front-loads the core action and async return, then the input mode, then the numbered upload procedure. Every clause carries operational information; no filler.

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?

With no output schema, the description compensates by explaining that a handle is returned and results are fetched via get_job, and it resolves the zero-required-parameter ambiguity by defining the two valid input combinations. Nothing essential for a correct call 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 all five parameters are already documented in the schema, including the invoiceText-vs-file-reference exclusivity. The description reinforces the mutually exclusive input modes but adds nothing about outputFormat or the enum values, so the baseline 3 holds.

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 and resource ('Start an invoice-extraction job') and immediately clarifies the async contract by naming get_job as the retrieval sibling. An agent can distinguish this from create_invoice_upload_url and get_job 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the two accepted input modes ('Pass invoiceText, OR filePath + bucket + mimeType from create_invoice_upload_url') and lays out the three-step local-file upload flow, including the ordered dependency on create_invoice_upload_url and the expiry constraint. Alternatives and conditions are fully spelled out.

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