Skip to main content
Glama

Get a list of purchase invoices

list_purchase_invoices
Read-onlyIdempotent

Retrieve purchase invoices with line items. Filter by status, edit date, or relation, and sort or paginate results.

Instructions

Get a list of purchase invoices.

Get a paginated list of all purchase invoices with their line items.

[Purchase Invoices] GET /invoices/purchase

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default = 1).
sortNoSort order. Format: field.direction (e.g. date.desc). Available fields: created, name, number, date, expiry_date, amount, invoiceAmountPaid, invoiceAmountOpen.
filterNoFilter purchase invoices by status.
recordsNoNumber of records per page.
last_editNoOnly return invoices edited after this date (format: YYYY-mm-dd).
relation_idNoOnly return invoices for the relation with this ID.
administrationNoThe client administration to act on. Only one is configured: default.
Install Server

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds that results are paginated and include line items, which is useful context beyond the schema. However, it does not detail any quirks, rate limits, or response behavior.

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 description is short and front-loaded with the core purpose. The first sentence repeats the tool title, but the second adds concrete scope (line items) and the third provides the endpoint path. Minimal redundancy, clear structure.

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 straightforward list operation with full parameter documentation and annotations covering read-only/idempotent behavior, the description is sufficient. It lacks details on default pagination behavior or return format, but the absence of an output schema and the simple nature keep the gap minor.

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 all parameters are already documented in the schema. The description adds no extra meaning beyond 'paginated' and 'with line items', which does not further clarify any specific parameter. Thus the baseline of 3 applies.

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?

The description states a specific verb ('Get'), resource ('purchase invoices'), and scope ('paginated list of all purchase invoices with their line items'). It clearly differentiates from sibling tools like get_purchase_invoice by emphasizing the list and pagination, leaving no ambiguity about what the tool does.

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?

The description gives no guidance on when to use this tool versus alternatives such as get_purchase_invoice or list_sales_invoices. It only states that it lists purchase invoices; there is no mention of prerequisites, filtering scenarios, or when a different tool would be more appropriate.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vladxyz/informer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server