Skip to main content
Glama

Lägg till räkenskapsår

add_fiscal_year

Lägg till ett räkenskapsår: året efter det senaste (nytt år) eller året före det tidigaste (börja bokföra ett tidigare år utan SIE-fil). Inga luckor. Balansräkningen rullas fram automatiskt och resultaträkningen börjar om på 0. Är föregående års resultat redan bokfört (årsbokslutet klart) förs det direkt om till eget kapital på nya årets första dag, annars sker det när föregående år låses. Kontona följer bolagsformen: aktiebolag och föreningar 2099 till 2091, enskild firma 2011-2019 till 2010, handelsbolag per delägare 20x1-20x9 till 20x0, ideell förening och stiftelse 2069 till 2067. Scope book. Argument: orgnr, year (slutår, t.ex. 2027).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "orgnr": "<orgnr>",
      "year": "<year>"
    },
    "name": "add_fiscal_year"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / orgnr / description
      Added value: +"Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare that it is non-read-only, non-destructive and non-idempotent. The description goes well beyond that: balance sheet rolls forward automatically, income statement resets to zero, and prior-year result is transferred to equity on day one only if the year-end closing is done, otherwise on lock. It also documents the account-mapping rules per company form, which is unusual and valuable behavioral disclosure for a mutation.

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?

Dense but front-loaded: the core action and the two valid scenarios come first, effects second, account mappings third, arguments last. The enumeration of account ranges per company form is verbose but each entry carries actual decision-relevant information, so little is wasted.

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?

For a mutating, non-idempotent two-parameter tool with no output schema, the description covers side effects, sequencing constraints and the required argument format well. Minor gaps remain: it does not say what happens on failure (e.g. year already exists or non-contiguous year), nor whether the call returns the created fiscal year.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% — orgnr is documented in the schema, but 'year' is bare. The description compensates by clarifying that year means the end year of the fiscal year (slutår, e.g. 2027), which is essential semantics that the schema omits entirely. It does not add anything for orgnr, but the schema already covers that including the list_companies hint.

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 ('Lägg till ett räkenskapsår') and immediately narrows the two possible targets: the year after the latest (new year) or the year before the earliest (prior year without SIE file). An agent can distinguish this from siblings like import_sie or list_fiscal_years without opening the 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?

Explicitly gives the two legitimate usage scenarios and the 'Inga luckor' constraint, which functions as an implicit exclusion (you cannot skip years). It hints at the import_sie alternative for historical data ('utan SIE-fil'), but never names a sibling tool or states what to do if the year already exists.

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.