Skip to main content
Glama

Invoices in a period

query_invoices
Read-only

Every invoice in a period (plus any open drafts), newest first: number, customer, date, amount incl. VAT, status (draft, sent, overdue, paid, voided, written_off), type (invoice or credit_note) and, for a credit note, which invoice it cancels. Covers specific invoices, paid or cancelled ones, and credit notes.

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": "query_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoTime period. Defaults to current_quarter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior, so the bar is lower. The description goes beyond them by disclosing ordering (newest first), inclusion of open drafts, the full status vocabulary, and the invoice/credit_note distinction with cancellation linkage — all useful behavioral context that annotations do not carry.

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?

One dense sentence that front-loads the core scope, then orders the returned fields, then states coverage. No filler, no repetition of the title or annotations.

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 no output schema, the description usefully documents the return shape and ordering, which is the main thing an agent needs. Minor residual gap: it does not resolve when to use this versus query_open_invoices given the shared draft coverage, and says nothing about result size limits.

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 'period' parameter already has its enum and current_quarter default documented in the schema. The description adds no syntax, format, or edge-case meaning beyond referring to 'a period', so baseline 3 applies.

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 scope ('Every invoice in a period, newest first, plus any open drafts') and enumerates what is returned (number, customer, amount incl. VAT, status, type, credit-note linkage). This clearly separates it from query_btw or query_financials, though the inclusion of open drafts overlaps query_open_invoices without clarifying the distinction.

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 closing clause 'Covers specific invoices, paid or cancelled ones, and credit notes' implies usage breadth, but there is no explicit when-to-use statement and no exclusion telling the agent to prefer query_open_invoices when only unpaid invoices are wanted. The overlap on open drafts is left unresolved.

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