Skip to main content
Glama

list_invoices

Read-only

Invoices, newest first. Optional: status ('draft'|'sent'|'paid'|'cancelled'), lead_id, account_id, contact_id, offer_id, search over number/title/recipient, limit (default 50). Each row carries due_on and overdue, both derived from the issue date — never stored, so they cannot go stale. Read-only.

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
limitNoMaximum number of entries to return
searchNoFree-text search term
statusNoOnly entries with this status
lead_idNoID of the lead
offer_idNoID of the offer
account_idNoID of the account (company)
contact_idNoID of the contact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
    • addedInput schema / properties / offer_id / description
      Added value: +"ID of the offer"
    • addedInput schema / properties / search / description
      Added value: +"Free-text search term"
    • addedInput schema / properties / status / description
      Added value: +"Only entries with this status"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the trailing "Read-only" is largely redundant. The sentence about due_on and overdue being derived from the issue date and never stored is genuinely useful behavioral context about returned data. What's missing is pagination/truncation behavior beyond the limit default, and whether results are complete or capped silently.

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?

The definition is short, telegraphic, and front-loads the resource and ordering before the optional filters. Every clause carries information; the slight cost is the fragment style, which reads as field notes rather than prose but does not waste words.

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?

With seven optional parameters and no output schema, the description accounts for every filter and sketches the returned row shape (due_on, overdue), which is enough for correct invocation. It falls short only on edge behavior: no max limit, no indication of what happens when search matches nothing or when the result set exceeds the limit.

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 real value: it supplies the enum values for status ('draft'|'sent'|'paid'|'cancelled') that the schema lacks, restricts search to number/title/recipient, and states the limit default of 50. That is exactly the kind of meaning that lives outside the schema.

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?

The description names the resource (invoices) and its ordering (newest first), so an agent knows exactly what this returns. The listing verb is implicit in "Invoices, newest first" rather than stated, and it never distinguishes itself from the sibling invoice listers (list_abaninja_invoices, list_odoo_invoices, list_sap_supplier_invoices, list_weclapp_invoices), leaving the agent to guess which one applies.

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?

The "Optional:" clause implies this is a filterable listing call with no required parameters, which conveys basic usage. However, there is no when-to-use guidance, no statement about which invoice source this covers versus the vendor-specific siblings, and no note on what happens with large result sets.

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.