Skip to main content
Glama
Mercury Multiorg MCP

Mercury Multiorg MCP

List invoices

list_invoices
Read-onlyIdempotent

Filter and list accounts-receivable invoices by status or invoice-date range to locate invoice IDs for review or follow-up.

Instructions

List accounts-receivable invoices, optionally by status and invoice-date range.

    Use this to find invoice ids or filter invoices; use `get_invoice` for
    one invoice's line items and service period, and
    `list_invoice_attachments` for its files. The API has no filters on
    this endpoint, so any `status`, `start`, or `end` walks every invoice
    before filtering here (`limit` then caps the matches); an unknown
    `status` is an error listing the allowed values, before any request.
    `slug` (the public pay-page token) is not returned; use
    `get_invoice_pdf` (when enabled) for the document.
    

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

Input Schema

NameRequiredDescriptionDefault
endNoLatest invoiceDate, YYYY-MM-DD (inclusive).
limitNoMaximum invoices to return.
startNoEarliest invoiceDate, YYYY-MM-DD (inclusive).
entityYesExact `entity` key from `list_entities`, not its `display_name`. Required; there is no default.
statusNoRestrict to one status (matched case-insensitively).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.6
    • changedInput schema / properties / entity / description
      Previous value: -"Entity key from `list_entities`. Required; there is no default."New value: +"Exact `entity` key from `list_entities`, not its `display_name`. Required; there is no default."
    • changedInput schema / properties / status / description
      Previous value: -"Restrict to one status (matched case-insensitively): Unpaid, Paid, Cancelled, Processing."New value: +"Restrict to one status (matched case-insensitively)."
  2. First observedv0.1.4

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description nonetheless adds real behavior: the endpoint has no server-side filters, so status/start/end walk every invoice and filter locally, with limit capping the matches afterward. That is genuinely useful context beyond the annotations, though it does not discuss pagination or response size limits for the full-walk case.

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 purpose, then routing, then caveats; the parenthetical about limit and the error behavior are tightly packed. Slightly dense and the mid-sentence clause about limit capping matches interrupts flow, but no sentence is wasted.

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?

An output schema exists, so return values need not be described; the description instead flags what is NOT returned (slug) and where to get the document. Combined with the full-walk caveat and the status validation behavior, an agent has everything needed to call this correctly on a 5-parameter tool.

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%, so the baseline is 3. The description adds meaning not in the schema by explaining that limit applies to matches after local filtering and that an unknown status fails before any request with an allowed-values error, but it does not add format or semantics for start/end beyond the schema's inclusive YYYY-MM-DD description.

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 ('List accounts-receivable invoices') plus the optional filter axes (status, invoice-date range). It explicitly distinguishes itself from `get_invoice` (line items, service period) and `list_invoice_attachments` (files), so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use ('find invoice ids or filter invoices') and names the alternatives with the conditions that select them: get_invoice for one invoice's details, list_invoice_attachments for files, get_invoice_pdf for the document. The one gap, no explicit 'when not to use', is covered implicitly by the routing to siblings.

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