Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Avvikelser per månad

get_deviations_vs_last_month
Read-onlyIdempotent

Account-by-account comparison of a month with the month before, sorted by the size of the change. Use when the person asks which accounts stand out this month compared with last month. Example question: "Vilka konton sticker ut den här månaden jämfört med förra?" 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_month"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoantal konton, standard 25 Number.
dateNoÅÅÅÅ-MM-DD för att välja räkenskapsår Date as YYYY-MM-DD unless the text allows more.
monthNoÅÅÅÅ-MM, standard den senaste månaden med bokförda rörelser Month, YYYY-MM.
compare_toNoÅÅÅÅ-MM att jämföra mot, standard närmast föregående månad med rörelser. Får ligga i förra räkenskapsåret, till exempel samma månad i fjol Month, YYYY-MM.
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. Changed1 schema field changed
    • changedInput schema / properties / compare_to / description
      Previous value: -"ÅÅÅÅ-MM att jämföra mot, standard närmast föregående månad med rörelser Month, YYYY-MM."New value: +"ÅÅÅÅ-MM att jämföra mot, standard närmast föregående månad med rörelser. Får ligga i förra räkenskapsåret, till exempel samma månad i fjol Month, YYYY-MM."
  2. Changed9 schema fields changed
    • changedInput schema / properties / compare_to / description
      Previous value: -"ÅÅÅÅ-MM att jämföra mot, standard närmast föregående månad med rörelser"New value: +"ÅÅÅÅ-MM att jämföra mot, standard närmast föregående månad med rörelser Month, YYYY-MM."
    • 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 / 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 / month / description
      Previous value: -"ÅÅÅÅ-MM, standard den senaste månaden med bokförda rörelser"New value: +"ÅÅÅÅ-MM, standard den senaste månaden med bokförda rörelser Month, YYYY-MM."
    • 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"
      +]
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint false), so the description adds value by disclosing that results are server-computed from live Fortnox data across all pages — no pagination or staleness concerns. It also discloses the sort order, which is behavioral information not present in annotations.

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 behavior, then when-to-use, then an example, then provenance. Efficient overall, though the Fortnox API URL is boilerplate that adds little for an agent.

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?

Annotations, a rich output schema, and fully documented parameters mean the description needn't explain return values. It covers purpose, trigger, and data freshness; only an explicit tie-break against get_deviations_vs_last_year 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 coverage is 100% and every parameter already has a description including defaults (top=25, from_account=3000, to_account=8989, month=latest with activity). The description adds nothing about parameter meaning beyond what the schema provides, so the 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?

States a specific verb and resource: an account-by-account comparison of a month against the previous month, sorted by change size. The phrase 'the month before' implicitly distinguishes it from the sibling get_deviations_vs_last_year, and 'account-by-account' pins down the granularity.

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?

Explicit trigger condition ('Use when the person asks which accounts stand out this month compared with last month') plus a concrete example question in Swedish. It lacks an explicit exclusion clause naming get_deviations_vs_last_year, but the temporal scoping makes the choice reasonably clear.

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