Skip to main content
Glama

Invoice Math Checker

invoice_check

Check a supplied invoice's line items, tax, and total. Use it when you need to know if the arithmetic balances. Buyer synonyms: invoice checker, invoice math, tax check, AP audit, bill verification. Unknown amounts are not treated as zero. No URL is fetched.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "invoice_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxNo
modeNo
textNo
totalNo
countryNo
currencyNo
subtotalNo
tax_rateNo
convert_toNo
line_itemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / convert_to
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / country
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / subtotal
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / tax
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / tax_rate
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two genuinely useful traits: unknown amounts are not treated as zero (so a missing field will not silently produce a false balance) and no URL is fetched (so the input must contain invoice content, not a link). It says nothing about the response shape, whether discrepancies are itemized, or any limits on input size or currency handling.

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?

The definition is short and front-loads the core action and usage condition before the caveats. The "Buyer synonyms" sentence is keyword padding that does not help invocation, though it is a single clause rather than a structural problem.

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?

For a ten-parameter tool with no annotations, no output schema, and no schema descriptions, the description is far too thin: it leaves the role of text versus line_items, the meaning of mode, and the entire conversion path (currency, country, convert_to) unexplained. An agent would have to guess at most of the invocation surface.

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?

Ten parameters with 0% schema description coverage means the description must compensate, yet it only names three of them (line_items, tax, total). The presence of mode, country, currency, tax_rate, convert_to, and subtotal implies currency conversion and multi-mode behavior that is entirely undisclosed, so an agent cannot confidently populate most of the schema.

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?

"Check a supplied invoice's line items, tax, and total" gives a specific verb (check) and resource (invoice) plus the exact fields examined, so the purpose is unambiguous. It does not, however, differentiate itself from the sibling quote_invoice_check, leaving the agent to infer the distinction from the name alone.

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?

"Use it when you need to know if the arithmetic balances" states a clear triggering condition, which is more than most definitions offer. It stops short of naming when not to use it or pointing at quote_invoice_check / vendor_check as alternatives for other invoice concerns.

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