Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Kontoutdrag och huvudbok

get_account_ledger
Read-onlyIdempotent

Account statement and general ledger: the individual voucher rows on the accounts given in account (one account, several, or a range; at most 200) for a period, with opening balance, running balance and closing balance. Use when the person asks to see the transactions on a specific account or how its balance has moved. Example question: "Visa alla verifikationsrader på konto 4010 i mars." Read-only; computed on the server from live Fortnox data over all pages (Fortnox API, 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": "get_account_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault
todateNoÅÅÅÅ-MM-DD Date as YYYY-MM-DD unless the text allows more.
accountNokontonummer, obligatoriskt — ett konto (1930), flera (1930,1940) eller ett intervall (1910-1939 eller en hel kontogrupp 1200-1299), högst 200 konton; av ett int Comma-separated.
fromdateNoÅÅÅÅ-MM-DD Date as YYYY-MM-DD unless the text allows more.
financialyearNoräkenskapsårets id Number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / account / description
      Previous value: -"kontonummer, obligatoriskt — ett konto (1930), flera (1930,1940) eller ett intervall (1910-1939 eller en hel kontogrupp 1200-1299), högst 200 kontonummer; av et Comma-separated."New value: +"kontonummer, obligatoriskt — ett konto (1930), flera (1930,1940) eller ett intervall (1910-1939 eller en hel kontogrupp 1200-1299), högst 200 konton; av ett int Comma-separated."
  2. Changed5 schema fields changed
    • changedInput schema / properties / account / description
      Previous value: -"kontonummer, obligatoriskt — ett konto (1930), flera (1930,1940) eller ett intervall (1910-1939 eller en hel kontogrupp 1200-1299), högst 200 kontonummer; av et"New value: +"kontonummer, obligatoriskt — ett konto (1930), flera (1930,1940) eller ett intervall (1910-1939 eller en hel kontogrupp 1200-1299), högst 200 kontonummer; av et Comma-separated."
    • changedInput schema / properties / financialyear / description
      Previous value: -"räkenskapsårets id"New value: +"räkenskapsårets id Number."
    • changedInput schema / properties / financialyear / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / fromdate / description
      Previous value: -"ÅÅÅÅ-MM-DD"New value: +"ÅÅÅÅ-MM-DD Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / todate / description
      Previous value: -"ÅÅÅÅ-MM-DD"New value: +"ÅÅÅÅ-MM-DD Date as YYYY-MM-DD unless the text allows more."
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world. The description adds genuinely useful behavior beyond them: results are computed server-side from live Fortnox data and paginate across all pages automatically, and account selection is capped at 200 accounts.

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?

Front-loaded with the core purpose, then usage, then an example, then behavioral caveats. Dense but nearly every clause earns its place; the trailing API doc URL is marginal filler.

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?

An output schema exists so return structure needn't be explained, all four parameters are documented in the schema, and the description covers scope and server-side aggregation. It stops short of clarifying how the period is determined when fromdate/todate are omitted.

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 coverage is 100%, so the baseline is 3. The description restates the account formats (single, comma-separated, range) that the schema already documents and says nothing new about fromdate, todate or financialyear behavior or defaults.

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?

Names a specific resource and verb ('the individual voucher rows on the accounts given in account') and specifies what comes back (opening balance, running balance, closing balance). It does not differentiate itself from the closely named sibling get_postings_by_account, which an agent could easily 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 Guidelines4/5

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

'Use when the person asks to see the transactions on a specific account or how its balance has moved' plus a concrete example question gives clear triggering context. It offers no when-not guidance and does not route away from overlapping siblings such as get_postings_by_account or get_chart_of_accounts.

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