Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Hämta ett dokument ur Fortnox

get_fortnox_document
Read-onlyIdempotent

Gives the person a download link for a file from Fortnox, chosen by operation_id: an invoice, offer or order as PDF (InvoiceController_doShowAndPreview, OfferController_doShowAndPreview or OrderController_doShowAndPreview, path_params DocumentNumber; several numbers comma-separated or a range such as "101-122" give one link to a zip file, at most 50), an SIE (the Swedish standard file format for accounting data) file (SieController_doShow, path_params Type 1–4, query_params financialYear), a file from the archive (ArchiveController_doShow, path_params id) or the inbox (InboxController_doShow, path_params Id; several ids comma-separated give one zip link), or an Excel file (xlsx) of a report or list this connection offers, by its operation_id (for example more:aldersanalys_kund). Use when the person wants a file to open or keep. The file goes to the person through the link and does not pass through the conversation. Other operations are refused. Read-only. Fortnox API (https://api.fortnox.se/apidocs).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "company_key": "<company_key>",
      "operation_id": "<operation_id>"
    },
    "name": "get_fortnox_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
expandNo
fieldsNo
summarizeNo
company_keyYes
path_paramsNo
operation_idYes
query_paramsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query_params / additionalProperties / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 500,
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 4000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "maxLength": 200,
      +          "type": "string"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ]
      +    },
      +    "maxItems": 200,
      +    "type": "array"
      +  }
      +]
  2. Changed2 schema fields changed
    • removedInput schema / properties / path_params / additionalProperties / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / path_params / additionalProperties / type
      Added value: +[
      +  "string",
      +  "number"
      +]
  3. First observed

TDQS

A3.8/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, and the description adds real behavior the annotations don't: delivery via link rather than through the conversation, comma-separated or range aggregation into one zip, and a 50-item cap. It doesn't cover permission requirements or what happens on an invalid operation_id beyond 'refused'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The delivery mechanism is front-loaded, but almost everything else is crammed into one run-on sentence with deeply nested parentheses, making it slow to parse. Most content is load-bearing, though the trailing 'Fortnox API' URL adds little value.

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?

There is no output schema, and the description usefully explains that the return is a link (or a zip link), which is the key completeness need. However, a seven-parameter tool with nested summarize objects leaves several parameters entirely undocumented, which is a gap an agent can't fill elsewhere.

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 description coverage is 0%, so the description carries the burden and it explains operation_id, path_params per operation (DocumentNumber, Type 1–4, id, Id) and query_params (financialYear) in concrete terms with an example. company_key, expand, fields, summarize and summarization.group_by/sum/all_pages remain completely unspecified in both schema and description.

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 (gives a download link) and resource (a file from Fortnox) and enumerates exactly which operation_id shapes are accepted (invoice/offer/order PDF, SIE, archive, inbox, xlsx report). It does not name or rule out the obvious siblings read_fortnox_document, extract_document_fields, get_archive_file or get_inbox_folder, so the agent must infer the boundary herself.

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?

'Use when the person wants a file to open or keep' gives a clear trigger, and the follow-up about the link not passing through the conversation implicitly contrasts with extraction-style tools. It stops short of naming an alternative or an explicit when-not condition beyond the 'other operations are refused' line.

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