Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

List supplier invoices

list_supplier_invoices
Read-onlyIdempotent

Lists supplier invoices from Fortnox, one page per call, with the Fortnox filters unpaid, unpaidoverdue, fullypaid, unbooked, cancelled, pendingpayment and authorizepending and search fields such as supplier, invoice number, OCR number (Swedish payment reference) and period. Use when the person asks to search or list supplier invoices by number, supplier, period or another Fortnox field. Amounts are in each invoice's own currency, and one page is not the whole ledger. summarize.all_pages gives totals over every page. Read-only. Fortnox API GET /3/supplierinvoices (https://api.fortnox.se/apidocs).

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

Input Schema

NameRequiredDescriptionDefault
ocrNoFilter supplier invoices by ocr number
pageNo
limitNo
expandNoOpen each record (rows)
fieldsNoOnly these columns
filterNoOne of: cancelled, fullypaid, unpaid, unpaidoverdue, unbooked, pendingpayment, authorizepending
offsetNo
sortbyNoOfficial Fortnox list sort field; valid fields are resource-specific.
todateNoFilter supplier invoices by to date
projectNoFilter supplier invoices by project
fromdateNoFilter supplier invoices by from date
sortorderNoOne of: ascending, descending
summarizeNoGroup and total on the server
costcenterNoFilter supplier invoices by cost center
lastmodifiedNoFilter supplier invoices by last modified date
ourreferenceNoFilter supplier invoices by our reference
serialnumberNoFilter supplier invoices by serial number
suppliernameNoFilter supplier invoices by supplier name
invoicenumberNoFilter supplier invoices by invoice number
yourreferenceNoFilter supplier invoices by your reference
suppliernumberNoFilter supplier invoices by supplier number
tofinalpaydateNoFilter supplier invoices by final to pay date
fromfinalpaydateNoFilter supplier invoices by final from pay date

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds genuinely non-obvious behavior: results are paginated and one page is explicitly not the whole ledger, amounts carry each invoice's own currency rather than a normalized one, and summarize.all_pages is the way to get cross-page totals. It also cites the underlying endpoint (GET /3/supplierinvoices) for verification.

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 scoping and pagination facts are front-loaded and each sentence carries information. The enumeration of filter values mildly duplicates the schema's filter enum, and the endpoint URL is optional overhead, but neither bloats the definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 23-parameter tool with a nested summarize object and an output schema, the description covers the things the schema cannot: pagination reality, currency semantics, the cross-page aggregation escape hatch, and read-only safety. Return-value details are correctly left to the output schema.

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 87%, so the baseline is 3. The description goes beyond it by glossing OCR as the Swedish payment reference and by grouping the filter values and key search dimensions (supplier, invoice number, period) so the agent understands the intended retrieval axes, while the remaining fields stay adequately documented in 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 a specific verb and resource ('Lists supplier invoices from Fortnox'), states the pagination model ('one page per call'), and enumerates the supported Fortnox filters and search fields. It is clear what the tool returns, but it does not distinguish itself from the closely named sibling find_supplier_invoices, which an agent would plausibly confuse it with.

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?

'Use when the person asks to search or list supplier invoices by number, supplier, period or another Fortnox field' gives a positive trigger condition, and the note about summarize.all_pages redirects for totals. However, the guidance overlaps almost exactly with what find_supplier_invoices would plausibly do, and no exclusion or alternative is named, so the agent has no rule for choosing between them.

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