Skip to main content
Glama

List invoices

list_invoices
Read-onlyIdempotent

Invoice history, each with the currency it was issued in. Filter by text, client, paid status or issue-date range. count and the unpaid totals cover every match; invoices lists the first 200 in the chosen order (listed says how many). unpaid_totals has one figure per currency; unpaid_total is only set when every match is in one currency.

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

Input Schema

NameRequiredDescriptionDefault
sortNonewest/oldest by issue date, highest/lowest by totalnewest
queryNoMatches number, client, notes, project names and entry notes
clientNoOnly this client: id or exact name
statusNoFilter by whether the invoice has been paidall
issued_toNoOnly invoices issued on or before this date
issued_fromNoOnly invoices issued on or after this date

Output Schema

NameRequiredDescriptionDefault
countYesEvery invoice that matches, not only the ones listed
listedYesHow many invoices are in invoices (the first 200 matches at most)
invoicesYes
unpaid_totalYesStill unpaid across every match, in their currency; null when the unpaid matches use more than one currency
unpaid_totalsYesStill unpaid per currency code, e.g. { USD: 150 }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / count / description
      Added value: +"Every invoice that matches, not only the ones listed"
    • addedOutput schema / properties / listed
      Added value: +{
      +  "description": "How many invoices are in invoices (the first 200 matches at most)",
      +  "type": "number"
      +}
    • changedOutput schema / properties / unpaid_total / description
      Previous value: -"Still unpaid across the matches, in their currency; null when the matches use more than one currency"New value: +"Still unpaid across every match, in their currency; null when the unpaid matches use more than one currency"
    • changedOutput schema / required
      Previous value: -[
      -  "count",
      -  "unpaid_total",
      -  "unpaid_totals",
      -  "invoices"
      -]New value: +[
      +  "count",
      +  "listed",
      +  "unpaid_total",
      +  "unpaid_totals",
      +  "invoices"
      +]
  2. Changed4 schema fields changed
    • changedOutput schema / properties / unpaid_total / description
      Previous value: -"Dollars still unpaid across the matches"New value: +"Still unpaid across the matches, in their currency; null when the matches use more than one currency"
    • changedOutput schema / properties / unpaid_total / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • addedOutput schema / properties / unpaid_totals
      Added value: +{
      +  "additionalProperties": {
      +    "type": "number"
      +  },
      +  "description": "Still unpaid per currency code, e.g. { USD: 150 }",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "count",
      -  "unpaid_total",
      -  "invoices"
      -]New value: +[
      +  "count",
      +  "unpaid_total",
      +  "unpaid_totals",
      +  "invoices"
      +]
  3. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the truncation rule (invoices lists only the first 200 while count and unpaid totals cover every match), the meaning of 'listed', and the conditional nullability of unpaid_total when matches span currencies. These are exactly the behavioral details an agent would otherwise get wrong when reporting totals.

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?

Four short sentences, front-loaded with what the tool returns and then the filter options, followed by the result-shape caveats. No filler or redundant restatement of the title.

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, yet the description still usefully frames the aggregate-versus-page relationship and the currency caveat, and all six optional parameters are covered by a fully documented schema. Only the absence of explicit sibling routing keeps it from being fully complete.

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 coverage is 100%, so the enum values, date patterns and matching rules are already documented in the schema. The description echoes the filter set and adds the notion of a 'chosen order' but no new syntax or constraint beyond what the schema provides; 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?

The description names the resource (invoice history) and states the filterable dimensions (text, client, paid status, issue-date range) plus the currency per invoice. It is specific about scope, but it never distinguishes itself from get_invoice or annual_report, so an agent must infer that this is the multi-record read.

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?

Usage is implied by the filter list and the 200-record cap, which hints at a browse/search role, but there is no explicit 'use this when...' guidance and no named alternative for single-invoice retrieval. The agent gets a reasonable picture of when the tool fits without being told when it does not.

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.