Skip to main content
Glama

List invoices

list_invoices
Read-only

Invoices issued (or drafted) for the properties you can edit — and the account's invoices of any concept with no property — newest first: number, status (draft/issued/rectified/cancelled), source (rental/sale/free), customer, total, AEAT status, whether the PDF exists, what is left to collect (outstanding), the due date and whether it is overdue (issued, still owed, past its due date — remind the customer with send_invoice_reminder). Filter by property, rental, status or year. Requires the invoicing feature. Paged: if the result has a non-null nextCursor, call again with it as cursor for more.

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
yearNo
limitNoPage size, 1-200 (default 100)
cursorNo`nextCursor` from the previous page, to get the next one
statusNo
rentalIdNoOnly invoices that cover this rental: its own invoice and any invoice with lines of it
propertyIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description goes further by disclosing ordering (newest first), the permission-based scoping to editable properties, the feature prerequisite, and a full pagination contract using nextCursor/cursor. It does not cover failure modes or result-size behavior, so it falls short of fully self-sufficient disclosure.

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?

Front-loaded with scope, then returned fields, then filters, prerequisite and paging — a logical order. The returned-field enumeration is a long comma list that is dense but earns its place because no output schema exists; a couple of clauses (the overdue gloss) could be tightened.

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?

Six optional parameters, no output schema, and a read-only tool: the description supplies both the returned field set and the paging protocol, which is what an agent most needs. Remaining gaps are minor — no explicit note on default page size or how year interacts with other filters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 50% schema description coverage (year, status and propertyId undocumented in the schema), the description compensates by naming the four filter dimensions and explaining the cursor loop precisely. It still does not clarify the year semantics (issue year vs due year) or the default page size, leaving some parameter meaning to inference.

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?

States a specific verb and resource plus its exact scope: invoices issued or drafted for properties the caller can edit, plus account-level invoices with no property. It enumerates returned fields (number, status, source, customer, total, AEAT status, PDF existence, outstanding, due date, overdue), which lets an agent separate it from siblings like list_invoice_customers or list_stays_to_invoice.

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?

Gives concrete selection criteria — filter by property, rental, status or year — and a prerequisite (the invoicing feature must be enabled). It also routes an adjacent follow-up action to send_invoice_reminder for overdue invoices. It stops short of stating when to prefer a different listing tool, but the scope sentence effectively does that work.

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.