Skip to main content
Glama

Läs skatteberäkning

read_tax
Read-onlyIdempotent

Visar bolagets skatteberäkning och INK2 för ett räkenskapsår, härledd direkt ur bokslutet utan justeringar. Använd för frågor om skatt och skattemässigt resultat; för att pröva justeringar som INK2S och periodiseringsfond, använd compute_tax, och för SRU-filerna, använd download_ink2_sru. Returnerar årets resultat, periodiseringsfond, särskild löneskatt, skattemässigt resultat, beskattningsbar inkomst och skatt i kronor, INK2-raderna i kronor och bokföringsposterna för skatten i öre. Periodiseringsfonden bokas på BAS-kontot för beskattningsåret (t.ex. 2126 för 2026) och återförs från de konton där fonderna ligger (pf_avsattning_konto, pf_aterforing_konton). Beräkningen gäller alltid hela räkenskapsåret. Läser bara, ändrar inget.

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>"
    },
    "name": "read_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoRäkenskapsåret, angivet som året då räkenskapsåret slutar, t.ex. 2025 (för 2024-07-01 till 2025-06-30 anges 2025). Utelämna för det senaste räkenskapsåret med verifikat.
monthNoAnvänds inte; beräkningen gäller alltid hela räkenskapsåret.
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
    • changedInput schema / properties / year / description
      Previous value: -"Räkenskapsåret, angivet som året då räkenskapsåret slutar, t.ex. 2025 (för 2024-07-01 till 2025-06-30 anges 2025). Utelämna för det senaste."New value: +"Räkenskapsåret, angivet som året då räkenskapsåret slutar, t.ex. 2025 (för 2024-07-01 till 2025-06-30 anges 2025). Utelämna för det senaste räkenskapsåret med verifikat."
  2. Changed2 schema fields changed
    • addedInput schema / properties / month / description
      Added value: +"Används inte; beräkningen gäller alltid hela räkenskapsåret."
    • addedInput schema / properties / year / description
      Added value: +"Räkenskapsåret, angivet som året då räkenskapsåret slutar, t.ex. 2025 (för 2024-07-01 till 2025-06-30 anges 2025). Utelämna för det senaste."
  3. 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."
  4. First observed

TDQS

A4.6/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 closed-world, so safety is covered; the description still adds real context beyond them: the figures come straight from the bokslut with no adjustments, the calculation always spans the whole fiscal year, and the system accounts are tied to the tax year via the BAS account (e.g. 2126 for 2026). The closing 'Läser bara, ändrar inget' resolves any confusion created by the booking-account language.

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 purpose and the sibling routing, then the return fields, then accounting specifics. Dense but every sentence carries information; the BAS-account naming is the one passage that borders on implementation detail rather than call guidance.

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?

No output schema exists, so the description carries the return-value burden and does: it enumerates årets resultat, periodiseringsfond, särskild löneskatt, skattemässigt resultat, beskattningsbar inkomst, skatt i kronor, INK2 rows in kronor and the bokföringsposter in öre, including the unit distinction. Combined with annotations and full schema coverage, an agent has everything needed to call it correctly.

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 100%, so the baseline is 3, but the description adds meaning the schema does not spell out: the calculation always covers the entire fiscal year, which tells the agent the month parameter is inert and that a partial-period result is impossible. It does not restate orgnr/year format details, which is correct since the schema handles those.

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 (show the company's tax calculation and INK2 for a fiscal year) and pins down the scope: derived directly from the year-end accounts, no adjustments. It immediately separates itself from compute_tax and download_ink2_sru by name, so an agent can route without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use it ('frågor om skatt och skattemässigt resultat') and names both alternatives plus the condition that selects each: compute_tax for adjustments such as INK2S and periodiseringsfond, download_ink2_sru for SRU files. Nothing is left to inference.

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.