Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Avvikelser per månad

get_deviations_vs_last_month
Read-onlyIdempotent

Avvikelser per månad: konto för konto mot föregående månad, största förändringen först. Example question: "Vilka konton sticker ut den här månaden jämfört med förra?" Computed on the server from live Fortnox data (Fortnox API, https://api.fortnox.se/apidocs), over all pages.

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 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. 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"
      +]
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld=false, so the safety profile is covered. The description adds real value beyond that: results are computed server-side from live Fortnox data and are aggregated "over all pages", which tells the agent pagination is already handled and the figures are current rather than cached.

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?

Purpose is front-loaded in the first clause, followed by an example and provenance in a compact three-sentence block. The Fortnox API URL is marginally useful decoration but does not bloat the definition meaningfully.

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 full parameter documentation, the description only needs to orient the agent, which it does via purpose, example, and data provenance. The remaining gap is minor: "avvikelse" is never defined (absolute SEK difference vs. percentage), and the relation to get_deviations_vs_last_year is left implicit.

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 all six parameters (top, month, compare_to, from/to_account, date) are documented in the schema with their defaults. The description adds only the "konto för konto" framing and result ordering, not parameter semantics, 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?

"Avvikelser per månad: konto för konto mot föregående månad, största förändringen först" names a specific verb/operation (account-by-account deviation), the exact comparison baseline (previous month), and the result ordering. This is clearly distinguishable from the sibling get_deviations_vs_last_year without opening either 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?

The embedded example question ("Vilka konton sticker ut den här månaden jämfört med förra?") gives an explicit usage cue, so an agent can match a user intent to this tool. It stops short of naming the sibling alternative (get_deviations_vs_last_year) or stating when-not-to-use, so it does not reach 5.

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