Skip to main content
Glama
Invoice Query MCP Server

Invoice Query MCP Server

Invoice summary

invoice_summary

Aggregate invoice counts and USD totals, optionally filtered by status, to summarize sample invoice data for AI-driven finance queries.

Instructions

Aggregate counts and totals for the sample invoice set, optionally filtered first.

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_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusNoOptional status filter before summarizing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 not meet it. It never says whether this is read-only (implied but unstated), what counts and totals are actually returned (per status? currency? grand total?), or what 'sample' means. For an aggregation tool with zero annotation coverage and no output schema, these omissions matter.

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?

One short sentence with the action and the optional filter front-loaded and no filler. The only cost is the vague 'sample invoice set', which spends words without adding precision.

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?

With no annotations and no output schema, the description is the only source of behavioral information, and it omits what the aggregate returns, its granularity, and how 'sample' scopes the data. An agent can call it, but cannot predict or interpret the result.

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 the single optional status parameter is fully documented with an enum, so the schema does the heavy lifting. The description's 'optionally filtered first' only corroborates that the filter is optional and applied pre-aggregation, adding little beyond 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?

States a specific verb ('Aggregate') and the metrics produced ('counts and totals') against the invoice set, so the agent knows this is a summary/rollup tool rather than a record fetch. It does not, however, differentiate itself from siblings like list_invoices or overdue_invoices, and 'sample invoice set' is an unexplained qualifier that leaves the scope of aggregation ambiguous.

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 phrase 'optionally filtered first' implies that a status filter can narrow the aggregate, and 'counts and totals' implies this is the tool to reach for when a rollup is wanted instead of individual invoices. There is no explicit when-to-use or when-not-to-use statement and no mention of the sibling tools that return individual invoices or overdue-only sets.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.