Skip to main content
Glama

List invoices

list_invoices
Read-onlyIdempotent

Lists the invoices and proformas of a company, newest first, with optional filters. Rows contain data entered by the user (names, numbers).

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": {
      "company_id": "<company_id>"
    },
    "name": "list_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoOnly documents dated within this range, both days included; both from and to are required.
pageNoPage of the list, starting at 1; the answer tells in next_page whether a next page exists.
paidNotrue: only issued documents marked as paid; false: only issued documents not marked as paid. Can't be combined with status or overdue.
typeNoThe document types to list; both when not given.
queryNoText to search for in the number, the customer (name, VAT ID, tax number, e-mail, phone) and the seller details of the documents.
statusNoOnly documents in this status: DRAFT, ISSUED, INVOICED (a proforma converted to an invoice) or CANCELLED. Converted proformas are left out unless this is INVOICED. Can't be combined with overdue or paid.
overdueNotrue: only issued invoices that are not paid and whose due date has passed. Can't be combined with status.
due_dateNoOnly documents due within this range, both days included; both from and to are required.
company_idYesThe id of the company, from list_companies.
customer_idNoOnly documents of this customer of the company.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds two genuinely useful behavioral facts beyond that: results are ordered newest first, and row contents are user-entered (names, numbers) — a meaningful caution about untrusted data. It omits pagination behavior, though the schema's page description partly covers that.

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?

Two tight sentences with zero padding; the core scope and ordering are front-loaded before the caveat about row contents. Nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with nested date objects and no output schema, the description is adequate but thin: it says nothing about result shape beyond one caveat, default page size, or how many rows come back. The exhaustive schema compensates for most of this, keeping it at minimum-viable rather than inadequate.

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% with rich per-parameter descriptions, including enum values and mutual-exclusion rules, so the schema does the heavy lifting. The description adds nothing parameter-specific beyond 'optional filters', which is the baseline 3 case.

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 ('Lists the invoices and proformas of a company'), plus ordering ('newest first') and the fact that filters are optional. It clearly distinguishes itself from single-document tools like get_invoice by being a list operation, though it never names a sibling alternative explicitly.

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 only implied: 'with optional filters' signals the filtering use case, and the schema's parameter descriptions carry the real rules (e.g., paid/status/overdue are mutually exclusive). The description never says when to use this versus get_invoice, get_invoice_totals, or query-based lookup, so routing is left to inference.

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