Skip to main content
Glama

search_invoices

Search invoices with rich filtering and cursor-style pagination. Returns { items, page, per_page, has_more }. Items are slim by default (no positions); set include_positions: true when line items are needed.

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1)
sortNoSort field: documentDate (default), dueDate, total, series, id
orderNoSort direction: desc (default) or asc
stateNoFilter by document state: draft, open, closed, cancelled. The alias "issued" means open+closed (finalised — not a draft, not cancelled). Comma-separated for several (e.g. "open,closed"). Omit for all states.
seriesNoFilter by invoice series (exact match)
date_toNoDocument date <= (YYYY-MM-DD)
currencyNoFilter by currency code, e.g. "RON", "EUR"
per_pageNoResults per page (default 20, max 100)
client_idNoFilter by exact client ID (more efficient than client_name)
date_fromNoDocument date >= (YYYY-MM-DD)
max_totalNoMaximum gross total (inclusive)
min_totalNoMinimum gross total (inclusive)
client_nameNoFilter by client name (partial match)
include_positionsNoWhen true, include line items in each invoice. Significantly increases response size — only use when needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full burden; it does disclose the response envelope and that items are slim by default, which is genuinely useful. However, it labels pagination 'cursor-style' while the schema exposes page/per_page, a mild mismatch, and it never states the read-only nature or how large result sets behave.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with purpose and return shape, with the cost-related caveat last. Nothing is wasted.

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?

For a 14-parameter, no-output-schema search tool, the description usefully sketches the return shape and the payload-size tradeoff. It lacks only sibling disambiguation and read-only confirmation, both of which matter given no annotations.

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 parameters are already documented in detail. The description only adds framing around include_positions (slim-by-default items), which the schema itself also warns about; baseline 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?

States a specific verb (search) and resource (invoices) plus the defining capability (rich filtering, pagination). It does not distinguish itself from close siblings such as get_invoice, invoices_summary, or search_supplier_invoices, which an agent must resolve on its own.

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 implied by 'search' and there is one conditional hint (set include_positions when line items are needed), but the description never says when to pick this over invoices_summary or a report tool. No exclusions or prerequisites are given.

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.

Resources