Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

listInvoices

listInvoices

Retrieve a paginated list of invoices and filter by customer, status, amount, due date, or creation date to locate and review billing records.

Instructions

Retrieve a paginated list of invoices, with options for filtering by customer, status, amounts, due date, creation date, and related customer/contract details. Invoice amounts and amount filters are in major units (25 means $25.00).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of invoices to return per page (defaults to 10).
cursorNoThe cursor for pagination.
statusNoFilter invoices by their status (e.g., 'draft', 'approved', 'paid', 'void', 'partially_paid', 'upcoming').
status__inNoFilter invoices by multiple statuses (comma-separated, e.g., 'draft,approved,paid,partially_paid,upcoming,void').
contract_idNoFilter by contract ID.
customer_idNoFilter invoices by a specific customer ID.
external_idNoFilter by invoice external ID.
__userContextNoInternal user context for multi-tenant authentication and approval workflow
due_date__gteNoFilter by due date greater than or equal to (ISO 8601).
due_date__lteNoFilter by due date less than or equal to (ISO 8601).
amount_due__gteNoFilter by amount due greater than or equal to.
amount_due__lteNoFilter by amount due less than or equal to.
created_at__gteNoFilter by creation date greater than or equal to (ISO 8601).
created_at__lteNoFilter by creation date less than or equal to (ISO 8601).
invoice_total__gteNoFilter by invoice total greater than or equal to.
invoice_total__lteNoFilter by invoice total less than or equal to.
invoice_number__likeNoPartial match for invoice number.
customer__external_idNoFilter invoices by a customer's external ID (nested filter).
customer__customer_name__ilikeNoCase-insensitive partial match for customer name associated with the invoice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.4

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does establish that the operation is a paginated read ('Retrieve', 'paginated list') and discloses the major-units convention for amounts, but it says nothing about permissions, default page size, ordering, or what a returned page contains.

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?

Two sentences, front-loaded with the core action and scope, then a compact note on filtering. Every clause carries information; the amount-unit note is slightly appended but is worth its space.

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?

With 19 optional params, no output schema, and no annotations, the definition is minimal but workable: the schema documents every parameter fully, and the description adds the unit semantics. It still leaves an agent guessing about result shape, ordering, and pagination behavior beyond 'paginated'.

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 the baseline is 3; the description earns above baseline by adding the unit convention ('25 means $25.00') that applies to both invoice amounts and amount filters, which is not stated anywhere in the schema for the numeric filter params.

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 ('Retrieve a paginated list of invoices') plus the dimensions it can be filtered on. It is clearly distinct from payment/contract siblings by resource, though it never explicitly contrasts with a sibling such as listAllPayments.

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 by the word 'Retrieve' and by the filter list; there is no explicit statement of when to use this versus other listing tools, nor any prerequisite or exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools