Skip to main content
Glama

finance_invoice_calc

Read-only

Invoice calculator — Exact invoice math in integer cents. Give items= as description|qty|unit_price (add |n for a non-taxable line) separated by ;, plus optional discount= (amount or percent like 10%), tax_rate= percent, shipping=, tax_shipping=yes, paid=, currency=, date= (YYYY-MM-DD, default today) and terms= (net 30, 2/10 net 30, net eom, due on receipt). Returns line amounts, subtotal, discount allocated to taxable lines, tax, total, balance due, due date (weekend flag), early-payment discount with the annualized cost of skipping it, a math check and a markdown table. Price: $0.002 USDC (Base, via x402).

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": {
      "items": "<items>"
    },
    "name": "finance_invoice_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYese.g. Design work|10|85;Hosting|1|240|n

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description goes further by disclosing the price ($0.002 USDC on Base via x402), the exact return payload (line amounts, discount allocation, tax, balance due, weekend-flagged due date, early-payment analysis, math check, markdown table), and the default for date=. Neither determinism nor edge-case behavior for malformed items strings is stated, which is the only real gap.

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?

Front-loaded with purpose then a dense but scannable enumeration of inputs, defaults, and returns; every clause carries information. It is a single run-on paragraph, and splitting inputs from outputs would have made it easier to parse.

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?

With one parameter, no output schema, and light annotations, the description does the heavy lifting well by specifying the return contents, the default date, and the paid/USDC cost model. Completeness would be higher if it clarified whether the many documented keyword parameters are honored given the schema exposes only items=.

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% but the schema declares only the items parameter, so the description carries real weight by documenting discount=, tax_rate=, shipping=, tax_shipping=, paid=, currency=, date=, and terms= with accepted syntax and value forms (e.g. '10%', 'net 30'). The only weakness is that these documented keys are absent from the input schema, leaving the agent unsure whether they are actually accepted.

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?

States a specific verb and resource: 'Invoice calculator — Exact invoice math in integer cents', which pins down both the operation and its precision model. It does not name a sibling such as ai_invoice_extract, so an agent must infer that this tool computes rather than extracts, which keeps it just below 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 Guidelines3/5

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

The body is almost entirely call-syntax instruction (how to format items=, which optional keys exist) rather than when-to-use guidance. It never says when to prefer this over the neighboring calculators or the extractor, nor are any prerequisites or exclusions stated; the intended use is only implied by 'invoice math'.

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