Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Kontering per konto

get_postings_by_account
Read-onlyIdempotent

A summary of a period's bookkeeping per account: for each account, the number of voucher rows and vouchers and the total debit and credit, for all accounts (up to top, default 40) or only those given in account. It gives totals per account, not the individual rows or balances. Use when the person asks to review which accounts a period's vouchers were booked to, or how much was booked on each account. Example question: "Kontrollera konteringen på verifikaten i september." 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_postings_by_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoantal konton, standard 40 Number.
dateNoÅÅÅÅ-MM-DD för att välja räkenskapsår Date as YYYY-MM-DD unless the text allows more.
todateNoÅÅÅÅ-MM-DD Date as YYYY-MM-DD unless the text allows more.
accountNovalfritt: bara dessa konton — ett (1930), flera (1930,1940) eller ett intervall (1910-1939) 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
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "valfritt: bara dessa konton — ett (1930), flera (1930,1940) eller ett intervall (1910-1939) Comma-separated.",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
  2. Changed7 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"ÅÅÅÅ-MM-DD för att välja räkenskapsår"New value: +"ÅÅÅÅ-MM-DD för att välja räkenskapsår Date as YYYY-MM-DD unless the text allows more."
    • 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."
    • changedInput schema / properties / top / description
      Previous value: -"antal konton, standard 40"New value: +"antal konton, standard 40 Number."
    • changedInput schema / properties / top / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the description's job is to add context — and it does: results are computed server-side from live Fortnox data, aggregated across all pages, capped at 'top' (default 40) accounts. It does not discuss filtering or pagination edge cases, but the safety and freshness profile is well covered.

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 first sentence front-loads the concrete output shape, followed by scope/exclusion, then usage, example and provenance. Every sentence earns its place, though the API URL and Swedish example question add length that a shorter definition could compress.

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 present and rich annotations, the description need only convey scope, aggregation level and when to reach for it — all of which it does. The only minor gap is that it does not clarify how date, todate and financialyear interact for selecting the period.

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 description coverage is 100%, so the schema already documents top, date/todate, account and financialyear. The description restates the useful semantics — top caps the number of accounts at a default of 40, and account narrows output to a subset — but adds no format or interaction detail beyond what the schema fields already say. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource ('a period's bookkeeping per account') and precisely enumerates what is returned (voucher rows, voucher counts, total debit and credit), then bounds it negatively: 'It gives totals per account, not the individual rows or balances.' An agent can immediately tell this apart from row-level or balance-level tools such as get_account_ledger without opening any schema.

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 an explicit use condition ('when the person asks to review which accounts a period's vouchers were booked to, or how much was booked on each account') reinforced by a concrete example question in Swedish. It lacks a named alternative for the row-level case, but the 'not the individual rows or balances' exclusion effectively signals when not to use it.

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