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 från Årets resultat (2099) till Balanserat resultat (2091) på nya årets första dag, annars sker det när föregående år låses. Scope book. Argument: orgnr, year (slutår, t.ex. 2027).

Input Schema

TableJSON 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.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing side effects: the balance sheet is rolled forward automatically, the income statement restarts at 0, and prior-year result is moved from 2099 to 2091 on the new year's first day only if the year-end closing is already booked, otherwise at prior-year lock. It does not cover permissions/auth requirements or how the 'no gaps' rule surfaces as an error.

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 action and the two modes before the carry-forward mechanics, so the key routing information comes first. The single dense sentence about the 2099/2091 transfer and the trailing 'Scope book. Argument: ...' clause add length, with the argument recap being partly redundant with the schema.

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 2-parameter mutation tool with no output schema, the description covers what it does, when each mode applies, and the accounting side effects. Missing pieces are the return value and any authorization/ownership prerequisites on orgnr, but the essential decision-making information is present.

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 not. The description compensates by clarifying that year is the end year of the fiscal year (slutår, e.g. 2027), which is genuinely non-obvious for a fiscal-year span. It also restates the required argument pair, though that duplicates the schema.

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+resource ('Lägg till ett räkenskapsår') and immediately enumerates the only two supported modes: the year after the latest (new year) or the year before the earliest (start bookkeeping in an earlier year without a SIE file). This distinguishes it clearly from siblings like list_fiscal_years, lock_fiscal_year, and transfer_prior_year_result.

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?

Gives explicit conditions for the two modes of use and the hard constraint 'Inga luckor' (no gaps), which tells the agent when the call will fail. It does not name alternative tools (e.g. import_sie for bulk historical years), so the when-not guidance is implied rather than explicit.

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