Skip to main content
Glama

parse_invoice_line_items

Parse structured line items from an invoice document. ($2.00)

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": {
      "invoice_text": "<invoice_text>"
    },
    "name": "parse_invoice_line_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentNoOptional payment: x402 base64 payment payload, or MPP voucher (mpp.v1...). Without it, the tool returns a payment_required challenge.
invoice_textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.6/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 behavioral burden and does little with it. The price marker '($2.00)' does convey a genuine behavioral trait (the call is billable), but the description never mentions the payment_required challenge path, accepted document formats/sizes, whether the operation is read-only, or failure modes. For a paid extraction tool with zero annotation coverage this is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Only two short sentences and the purpose is front-loaded, so it wastes little space. However, the parenthetical price is cryptic in this position — it reads as an unexplained annotation rather than actionable information, and the second sentence would be better spent on input format or payment behavior.

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

Completeness2/5

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

The tool takes a required document payload, an optional payment credential, has no output schema and no annotations, so the description must explain both input expectations and the paid invocation loop. It explains neither: an agent cannot tell what invoice_text should contain or that a bare call returns a payment_required challenge until it reads the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: the payment parameter is well documented in the schema itself, but invoice_text has no schema description and the tool description adds nothing about its expected form (raw text, base64 PDF, URL, size limits). The description therefore does not compensate for the undocumented half of the input contract.

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 and resource: 'Parse structured line items from an invoice document.' An agent can tell it extracts structured line-item data rather than validating or scanning a document, and the sibling tools are in unrelated domains so no differentiation is strictly needed. It stops short of stating what 'structured' means (field set, table layout) which keeps it from a 5.

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 when-to-use, when-not-to-use, or prerequisite guidance. Nothing says when this is preferable to the related document tools such as scan_document_expiry or audit_i9_document, nor does it warn that the call will fail without payment. The lone '($2.00)' hints at a paid flow without explaining how to satisfy it.

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