Skip to main content
Glama

get_purchase_invoice_lines

Read-onlyIdempotent

Purchase invoice lines: supplier, item, quantity, unit price and amount, with the invoice and its date. Amounts are in the administration currency (the currency / currency_code column where present, otherwise the division default). Positive amounts are cost invoiced to the company.

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": "get_purchase_invoice_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per page (default 100, at most 400). A larger page is refused as too_broad.
cursorNoPass the `next_cursor` of the previous page to continue where it stopped.
tenant_idNoThe tenant to query. Required when you have access to more than one tenant; may be omitted when you have exactly one. Call list_tenants for the ids.
division_idNoRestrict the answer to one administration. Omit to cover every administration you have access to. It can only narrow your access, never widen it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / division_id / description
      Previous value: -"Restrict the answer to one administration (Exact Online division). Omit to cover every administration you have access to. It can only narrow your access, never widen it."New value: +"Restrict the answer to one administration. Omit to cover every administration you have access to. It can only narrow your access, never widen it."
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent and non-destructive, so the description sensibly spends its words elsewhere: it explains the currency basis (administration currency, `currency`/`currency_code` column, otherwise division default) and the sign convention (positive amounts are cost invoiced to the company). Those are genuinely additive interpretive facts an agent could not infer from schema or annotations, though it says nothing about the unpaginated scope of a query with no invoice or date filter.

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?

A single, dense, front-loaded sentence that starts with the resource and then adds field and amount semantics. Nothing is redundant, though it reads as a noun phrase with no verb and packs three distinct ideas into one line.

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 read-only tool with no output schema, it covers what the rows contain and how amounts should be read. What is missing is scope: with no invoice, period or supplier filter among the parameters, the tool evidently returns every purchase invoice line the tenant can see, and that broader behaviour and typical result size go unstated.

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 the baseline is 3. The description adds minor colour by referencing the administration currency and 'division default', which loosely ties to division_id, but it gives no direct guidance on limit/cursor/tenant_id beyond what the schema already documents.

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 precisely ('Purchase invoice lines') and enumerates the fields returned (supplier, item, quantity, unit price, amount, invoice and date). It implicitly separates itself from the sibling get_sales_invoice_lines via 'purchase', but it never uses an explicit verb like 'list' and does not name an alternative outright.

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 when-to-use or when-not-to-use guidance whatsoever. Nothing tells the agent whether to reach for this instead of get_payables (aggregated payables) or get_sales_invoice_lines, and no prerequisites or typical query context 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