Skip to main content
Glama

list_sales_invoices

Retrieve sales invoices filtered by contact, item type, and issue-date range to identify specific billing records for review or reconciliation.

Instructions

List sales invoices. Filter by contact, item_type and an issue-date range.

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_sales_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based)
sortNoSort field, '-' prefix for desc (e.g. '-issue_date')
per_pageNoItems per page (max 25)
item_typeNoFilter by item type
contact_idNoFilter by customer contact ID
issue_date_toNoIssue date to (YYYY-MM-DD)
issue_date_fromNoIssue date from (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing about result ordering, default paging behavior, the 25-item cap, whether a total count is returned, or read-only/safety characteristics. "List" weakly implies a non-mutating read, but that is inference rather than 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?

Two short sentences with the resource front-loaded and the filters kept to a single clause; nothing is padded or buried. The second sentence largely restates schema parameters, which slightly lowers its value but not its readability.

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?

For a seven-parameter, zero-required read tool with no annotations and no output schema, the description covers purpose and filter axes adequately but leaves the return shape and paging contract unaddressed. An agent can call it, but cannot predict what comes back or how to page through results.

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 description coverage is 100%, so every parameter including page, sort, per_page, contact_id, item_type, and both date bounds is already documented in structured form. The description merely echoes three of the seven filters without adding format, default, or interaction semantics, so the baseline of 3 applies.

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 gives a specific verb and resource ("List sales invoices") plus the three available filter axes, so the agent knows exactly what the tool does. It does not distinguish itself from neighbors like list_sales_offers or get_sales_invoice, leaving the agent to infer the boundary from names alone.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus get_sales_invoice (single record) or the offer-listing sibling, and no mention of prerequisites such as an authenticated workspace. The only implied guidance is that filtering by contact, type, or date range is possible, which the schema already conveys.

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