Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

List customer invoices

list_invoices
Read-onlyIdempotent

Lists customer invoices from Fortnox, one page per call, with the Fortnox filters unpaid, unpaidoverdue, fullypaid, unbooked and cancelled and search fields such as customer, invoice number, OCR number (Swedish payment reference), period and project. Use when the person asks to search or list customer invoices by number, customer, 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/invoices (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_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
ocrNo
pageNo
sentNo
labelNo
limitNo
creditNo
expandNoOpen each record (rows)
fieldsNoOnly these columns
filterNoOne of: cancelled, fullypaid, unpaid, unpaidoverdue, unbooked
offsetNo
sortbyNoOne of: customername, customernumber, documentnumber, invoicedate, ocr, total
todateNo
projectNo
currencyNo
fromdateNo
sortorderNoOne of: ascending, descending
summarizeNoGroup and total on the server
costcenterNo
invoicetypeNo
customernameNo
lastmodifiedNo
notcompletedNo
ourreferenceNo
articlenumberNo
yourreferenceNo
customernumberNo
documentnumberNo
tofinalpaydateNo
accountnumbertoNo
yourordernumberNo
fromfinalpaydateNo
accountnumberfromNo
articledescriptionNo
externalinvoicereference1No
externalinvoicereference2No

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, so the safety profile is covered. The description adds real context beyond that: results are paginated one page at a time, a page is not the whole ledger, amounts are in each invoice's own currency (a genuine gotcha for summing), and summarize.all_pages aggregates across all pages. The API endpoint reference is a small bonus; return format is left to the output schema.

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 sentences are dense but front-loaded: what it does, then filters/fields, then when to use, then the pagination and currency caveats. Nothing is redundant, though the single long filter/search sentence is packed tightly enough to be slightly hard to scan.

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 paginated list tool with an output schema, the essentials are present: how results are paged, that amounts are per-currency, and how to get cross-page totals. The remaining gap is the large undocumented parameter surface, which an agent would have to infer from names alone.

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?

With 35 parameters at 17% schema coverage, the description must carry most of the semantic load, and it only partially does. It names the filter values and the useful search fields (customer, invoice number, OCR, period, project) and explains OCR as a Swedish payment reference, but roughly two dozen parameters such as sent, credit, notcompleted, label, articlenumber and the external invoice references remain undocumented in both description and 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 opens with a specific verb and resource ('Lists customer invoices from Fortnox') and scopes it ('one page per call'), so the core action is unmistakable. It never distinguishes itself from the sibling find_customer_invoices, so an agent facing both a 'list' and a 'find' invoices tool has no stated basis for choosing between them.

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

Usage Guidelines4/5

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

It gives explicit use context ('Use when the person asks to search or list customer invoices by number, customer, period or another Fortnox field') and steers toward summarize.all_pages when totals over the whole ledger are needed. It offers no when-not guidance and, notably, no rule for preferring find_customer_invoices instead.

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