Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

List orders

list_orders
Read-onlyIdempotent

Lists customer orders, one page per call, with filters such as customer, period and whether an invoice has been created. Use when the person asks to find or list orders. summarize.all_pages gives totals over every page. Read-only. Fortnox API GET /3/orders (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_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
sentNofilter by sent
labelNofilter by label
limitNo
expandNoOpen each record (rows)
fieldsNoOnly these columns
filterNoOne of: cancelled, expired, invoicecreated, invoicenotcreated
offsetNo
sortbyNoOne of: customername, customernumber, orderdate, documentnumber, total
todateNofilter by to date
projectNofilter by project
fromdateNofilter by from date
ordertypeNofilter by order type
sortorderNoOne of: ascending, descending
summarizeNoGroup and total on the server
costcenterNofilter by cost center
customernameNofilter by customer name
lastmodifiedNofilter by lastmodified
notcompletedNofilter by not completed
ourreferenceNofilter by ourreference
yourreferenceNofilter by your reference
customernumberNofilter by customer number
documentnumberNofilter by document number
externalinvoicereference1Nofilter by external invoice reference 1
externalinvoicereference2Nofilter by external invoice reference 2

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower; the description still adds real behavior: one page per call, summarize.all_pages aggregates across every page, and it names the backing endpoint (GET /3/orders) with a docs link. It doesn't mention default page size or rate limits, but nothing is contradicted.

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?

Four compact, front-loaded sentences: purpose, filters, usage trigger, summarize note, then the API reference. Nothing is redundant, though the 'one page per call' idea and the summarize note could be merged for tighter flow.

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?

With an output schema, full annotations, and 88% schema coverage across 25 optional parameters, the description needs only to orient the agent, which it does: scope, paging, filter categories, and the aggregation escape hatch. The only gap is not distinguishing itself from the uninvoiced-orders sibling.

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 88%, so the baseline is 3; the description earns above that by clarifying that summarize.all_pages computes totals across every page, which is meaningfully more than the schema's 'Group and total on the server'. Paging parameters (page/limit/offset) and the many filter fields are left entirely to 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 states a specific verb and resource ('Lists customer orders') plus paging behavior and filter categories (customer, period, invoice-created status). It gestures at the invoice-created filter, which is what would separate it from find_uninvoiced_orders, but never names that sibling or states the distinction.

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?

Gives a clear trigger: 'Use when the person asks to find or list orders,' and a condition for switching to the summarize path ('summarize.all_pages gives totals over every page'). It lacks any explicit when-not guidance or named alternative for the uninvoiced-orders case.

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