Skip to main content
Glama

List your invoices

list_invoices
Read-onlyIdempotent

List your invoices

Returns the invoices raised against the account, newest first. Without paging the body is a bare JSON array rather than a { data: [...] } envelope, and the whole history comes back on each call; send page or perPage and the response becomes { data, pagination } with a real total. There is no date filter either way. The list holds both kinds of invoice the account can have: ours, for what it paid us, and those of its reseller, for what it paid a reseller that bills its customers itself. Each row says which in source. The two kinds are numbered independently, so pass source on to GET /billing/invoices/{id}/pdf. An invoice from a reseller appears once the reseller has issued it; its pdfUrl is always null and the document is rendered on demand through that endpoint.

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 to return. Starts at 1; values below 1 are clamped to 1.
perPageNoItems per page. Clamped to the range 1 to 100; larger values are reduced to 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: response shape flips between a bare array and a { data, pagination } envelope depending on whether paging params are sent, the entire history is returned on unpaged calls (a real performance signal), and reseller invoices always have null pdfUrl and are rendered on demand.

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 the core behavior and progresses to response shape, then the reseller-invoice caveat. Dense but each clause carries information; the final sentence about numbering and the PDF endpoint is slightly tangential but still operationally relevant.

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?

There is no output schema, so the description carries the return-value burden and does so fully: array vs envelope, pagination object with total, source field, independent numbering, and null pdfUrl. Nothing an agent needs to call this correctly is missing.

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?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema cannot: supplying page/perPage changes the response envelope and yields a real 'total'. It does not repeat the clamping rules already documented in the schema.

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 ('Returns the invoices raised against the account') plus the ordering ('newest first') and the two invoice kinds it contains. An agent knows exactly what this tool returns without opening the 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?

Implies usage clearly and adds a real constraint: 'There is no date filter either way,' which tells the agent not to reach for this tool when it needs date-scoped results. No named alternative exists among the siblings, so the absence of an explicit alternative is acceptable.

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.