Skip to main content
Glama

List Invoices

list_invoices
Read-only

The Invoices, Quotes and Reverses pages: customer invoices (default), quotes (documentKind=quote) or credit notes (documentKind=credit_note), newest first, with status, customer, the sales order billed, dates, total and whether an issued invoice is paid or overdue. Filter by status, customer, sales order or search text. Call get_invoice for a document's lines and payments.

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
pageNoPage number (1-based).
searchNoSearch text: document number, customer name or sales order number.
statusNoall (default), draft (not yet issued), issued, paid, unpaid (issued, no payment), overdue (unpaid past due), canceled; for quotes open, accepted, converted or canceled.
clientIdNoOptional client id (GUID) for operator (unpinned) credentials on 3PL tenants: only documents that bill that client's sales orders.
pageSizeNoPage size (max 100, default 25).
customerIdNoOptional customer id (GUID) from lookup_business_partners.
documentKindNoinvoice (default), quote or credit_note.
salesOrderIdNoOptional sales order id (GUID): documents that bill that order.

Output Schema

NameRequiredDescriptionDefault
pageNo
totalNo
invoicesNo
pageSizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: results are ordered newest first, the default document kind is invoice, and the returned rows carry status, customer, billed sales order, dates, total and paid/overdue state. It does not mention pagination limits or result caps, which the schema only partly covers via pageSize.

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?

Three sentences, front-loaded with what is listed and then how to filter, ending with the alternative tool. The first sentence is dense with returned-field enumeration that partly duplicates the output schema, but no sentence is wasted or off-topic.

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

Completeness5/5

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

With an output schema present, the description need not explain return values, and annotations already carry the read-only safety profile. Given eight optional parameters and no required inputs, the description supplies the defaults, ordering, filter surface and the hand-off to get_invoice - everything an agent needs to call it correctly.

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%, so every one of the eight parameters is already documented in the schema, including documentKind values, status enums and the clientId 3PL caveat. The description restates the documentKind values and the filter axes but adds no syntax, format, or interaction detail beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource - listing customer invoices, quotes, or credit notes - and names the documentKind switch that selects among them. It explicitly distinguishes itself from get_invoice, which handles a single document's lines and payments, so an agent can pick correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It states the default view (customer invoices, newest first) and gives an explicit routing rule: use get_invoice for a document's lines and payments. It also enumerates the filter axes. It stops short of stating when *not* to use this list tool (e.g. when the document kind is unknown), so it is strong but not fully exhaustive.

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