Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Avvikelser

get_deviations_vs_last_year
Read-onlyIdempotent

Account-by-account comparison with the year before, sorted by the size of the change. Use when the person asks which costs or revenues have changed most compared with last year. Example question: "Vilka kostnader har ökat mest mot förra året, och varför?" 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_deviations_vs_last_year"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoantal konton, standard 25 Number.
dateNoÅÅÅÅ-MM-DD för att välja år Date as YYYY-MM-DD unless the text allows more.
to_accountNostandard 8989 (8999 Årets resultat är bokslutets motpost, ingen kostnad) BAS account number.
from_accountNostandard 3000 BAS account number.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"ÅÅÅÅ-MM-DD för att välja år"New value: +"ÅÅÅÅ-MM-DD för att välja år Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / from_account / description
      Previous value: -"standard 3000"New value: +"standard 3000 BAS account number."
    • changedInput schema / properties / from_account / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / to_account / description
      Previous value: -"standard 8989 (8999 Årets resultat är bokslutets motpost, ingen kostnad)"New value: +"standard 8989 (8999 Årets resultat är bokslutets motpost, ingen kostnad) BAS account number."
    • changedInput schema / properties / to_account / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / top / description
      Previous value: -"antal konton, standard 25"New value: +"antal konton, standard 25 Number."
    • changedInput schema / properties / top / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
  2. Added

TDQS

A4/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 openWorldHint=false, so the safety profile is covered. The description still adds real value beyond that: results are computed server-side from live Fortnox data and cover all pages, telling the agent the answer is complete rather than a truncated page. It omits any latency or rate-limit expectation, which is the main remaining gap.

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 operation is front-loaded in the first clause, followed by the trigger condition and a worked example. Three sentences and no filler. The trailing Fortnox API URL is marginally useful but is the least load-bearing element.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 values need no explanation, and annotations cover safety semantics. The description supplies what the structured fields cannot: the use case in user language, the sort order, and the fact that the computation spans all pages of live data. Nothing needed to invoke it correctly is missing.

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%, and the schema already documents defaults (top 25, from_account 3000, to_account 8989, BAS numbering) and the date format. The description adds only the notion that accounts are the comparison unit and that the default upper bound excludes the 8999 year-end result account. With the schema doing the heavy lifting, baseline 3 is appropriate.

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 first sentence states a concrete operation and output shape: an account-by-account comparison against the prior year, sorted by magnitude of change. That is far more specific than the title 'Avvikelser'. It does not explicitly contrast itself with the sibling get_deviations_vs_last_month, so differentiation is left to inference from the tool name.

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 which costs or revenues have changed most compared with last year' gives a clear trigger condition, reinforced by a concrete example question. There is no statement of when not to use it or which sibling to pick for month-over-month or multi-year comparisons, so it stops short of full routing guidance.

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