Skip to main content
Glama

Beräkna skatt

compute_tax
Read-onlyIdempotent

Räknar fram bolagets skatt och INK2 med de justeringar som görs i årsredovisningsguiden, t.ex. ändrade rader i resultat- och balansräkningen, INK2S-justeringar och periodiseringsfond. Använd för att pröva hur justeringar påverkar skatten; för skatteberäkningen härledd direkt ur bokslutet utan justeringar, använd read_tax. Utan något annat argument än orgnr räknas skatten på det senaste räkenskapsårets bokslut som det är. Returnerar skatteberäkningen med underlag till INK2 och räkenskapsschemat INK2R. Sparar inget. Kräver behörigheten statutory.

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": "compute_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), som i övriga verktyg. Utelämna för det senaste räkenskapsåret med verifikat.
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
user_inputsNoValfria justeringar som i årsredovisningsguidens skattesteg, t.ex. INK2S-justeringar och periodiseringsfond. Utelämna för att räkna på bokslutet som det är.
balance_sheetNoValfria rader i balansräkningen [{label, amount}], belopp i kronor, som ersätter de rader som annars härleds ur bokslutet.
income_statementNoValfria rader i resultaträkningen [{label, amount}], belopp i kronor, som ersätter de rader som annars härleds ur bokslutet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / year / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / year / default
      Previous value: -0New value: +null
    • changedInput schema / properties / year / description
      Previous value: -"Räkenskapsår relativt bokslutet: 0 = aktuellt räkenskapsår (standard), -1 = föregående."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), som i övriga verktyg. Utelämna för det senaste räkenskapsåret med verifikat."
    • removedInput schema / properties / year / type
      Removed value: -"integer"
  2. Changed5 schema fields changed
    • addedInput schema / properties / balance_sheet / description
      Added value: +"Valfria rader i balansräkningen [{label, amount}], belopp i kronor, som ersätter de rader som annars härleds ur bokslutet."
    • addedInput schema / properties / income_statement / description
      Added value: +"Valfria rader i resultaträkningen [{label, amount}], belopp i kronor, som ersätter de rader som annars härleds ur bokslutet."
    • addedInput schema / properties / orgnr / description
      Added value: +"Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies."
    • addedInput schema / properties / user_inputs / description
      Added value: +"Valfria justeringar som i årsredovisningsguidens skattesteg, t.ex. INK2S-justeringar och periodiseringsfond. Utelämna för att räkna på bokslutet som det är."
    • addedInput schema / properties / year / description
      Added value: +"Räkenskapsår relativt bokslutet: 0 = aktuellt räkenskapsår (standard), -1 = föregående."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses the auth requirement ('Kräver behörigheten statutory'), the absence of side effects ('Sparar inget'), the default computation basis when no adjustments are passed, and what the response contains (tax calculation plus INK2/INK2R basis). This is exactly the extra context annotations cannot carry.

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 contrast, then default behavior, return value and permissions. Dense and mostly waste-free; the phrasing is slightly long-winded but every sentence contributes a distinct fact.

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?

For a read-only computation tool with no output schema, the description supplies the missing pieces: what is computed, what is returned (INK2R/INK2 basis), that nothing persists, and the required permission. An agent has everything needed to call it correctly and interpret the result.

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 already 100%, so the baseline is 3; the description adds value by mapping the conceptual inputs — adjusted income/balance sheet rows and INK2S/periodiseringsfond adjustments — onto the balance_sheet, income_statement and user_inputs parameters, and by explaining the null/default case. It stops short of format details for the [{label, amount}] rows, but the schema covers 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 and resource ('Räknar fram bolagets skatt och INK2') and immediately scopes it to adjustments made in the annual-report guide (income/balance sheet rows, INK2S, periodiseringsfond). It also explicitly contrasts itself with the sibling read_tax, so an agent can distinguish the two 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 Guidelines5/5

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

Gives an explicit when-to-use rule ('Använd för att pröva hur justeringar påverkar skatten') and names the alternative with the selecting condition ('för skatteberäkningen härledd direkt ur bokslutet utan justeringar, använd read_tax'). It further documents the default path when only orgnr is supplied, leaving nothing 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.