Skip to main content
Glama

Check invoices

check_invoices
Read-only

Use this when the user wants invoices verified without making a file: whether net plus VAT equals the total, whether line items add up, which fields are missing, and which invoices look like duplicates. Returns the findings and totals per currency. Nothing is stored.

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": {
      "invoices": "<invoices>"
    },
    "name": "check_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoicesYesEvery invoice, one entry each, with values exactly as printed on the document. Use null for anything not printed or not legible; never estimate.

Output Schema

NameRequiredDescriptionDefault
checksYes
totalsYes
check_countYes
invoice_countYes
line_item_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / invoices / items / properties / customer
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 300,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Who the invoice is billed to, if printed."
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, and 'Nothing is stored' is consistent with that profile rather than new information. The mention of returning 'findings and totals per currency' adds a little behavioral context, but nothing on severity levels, tolerances for rounding discrepancies, or how duplicates are judged.

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-loaded with the usage trigger, then a compact clause listing the four checks, then the return shape and the no-storage guarantee. Every sentence carries distinct information with no padding.

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?

An output schema exists, so return values need not be spelled out, and the description still sketches them. Input expectations are covered by the schema's 'values exactly as printed, never estimate' instruction. Only minor gaps remain, such as what constitutes a duplicate or whether a rounding tolerance is applied.

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

Parameters4/5

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

Schema coverage is 100% for the single invoices array, so the field-level definitions are already provided. The description still adds meaning by naming the checks performed, telling the agent which values (net, VAT, total, line totals, identifying fields) actually drive the validation rather than just being stored.

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+resource ('invoices verified') and enumerates the exact checks performed: net plus VAT versus total, line-item sums, missing fields, and duplicate detection. The phrase 'without making a file' distinguishes it from the sibling create_invoice_spreadsheet without needing to open either schema.

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?

Opens with an explicit 'Use this when the user wants...' trigger, and 'without making a file' implicitly signals the contrasting case where the file-producing sibling applies. It stops short of naming that sibling or stating exclusions outright, so the routing cue is strong but not fully explicit.

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