Skip to main content
Glama

parse_invoice

Parse invoice text into vendor, amount, due_date, line_items (with math_check).

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": {
      "text": "<text>"
    },
    "name": "parse_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesInvoice text or PDF extract

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / text / minLength
      Added value: +1
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden but reveals almost nothing about behavior: no mention that it is a pure read/parse operation with no side effects, no handling for malformed or non-invoice input, and no explanation of what 'math_check' produces or how it signals a mismatch. It only hints that line-item arithmetic is validated, without saying how that surfaces.

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?

A single front-loaded sentence with no wasted wording; the output fields are packed efficiently after the verb. The parenthetical '(with math_check)' is slightly terse but still informative rather than redundant.

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?

For a one-parameter parsing tool the description covers the input and the extracted output shape reasonably well. However, with no annotations and no output schema, gaps around failure behavior, the meaning of math_check, and output structure leave the agent guessing on edge cases.

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 there is only one required parameter, so the schema already fully documents 'text'. The description adds no syntax or format detail beyond echoing that invoice text is the input, so the baseline 3 applies.

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 names a specific verb ('Parse') and a specific resource ('invoice text'), then enumerates the extracted fields (vendor, amount, due_date, line_items), which makes the tool's function immediately clear. It is implicitly distinguishable from siblings like structure_text or extract_table by its invoice-specific scope, though it never explicitly differentiates itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no conditions for choosing this over structure_text or extract_table, and no note on when it is inappropriate (e.g., non-invoice input). Usage is only inferable from the word 'invoice' in the description and the schema's 'Invoice text or PDF extract' note.

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