Skip to main content
Glama

Ta fram INK2 SRU

download_ink2_sru
Idempotent

Tar fram INK2 som SRU-filer (INFO.SRU och BLANKETTER.SRU) för ett räkenskapsår, ifyllda ur bokslutet. Använd när användaren själv ska lämna in inkomstdeklarationen hos Skatteverket; för själva skatteberäkningen, använd read_tax. Kräver att postnummer och postort är kända (från årsredovisningsguiden eller SIE-filen), annars returneras ett fel med vad som saknas. Returnerar filernas innehåll som text och vilket år de gäller; Skatteverket kräver att filerna sparas i ISO 8859-1. Skatten följer de val som sparats på skattesidan. Bieffekt: som nedladdningen i appen registreras filen som skapad för året (syns som Skapad under Skatt och deklaration). Inget skickas till Skatteverket.

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": "download_ink2_sru"
  }
}

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.
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. Changed1 schema field changed
    • 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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true. The description adds real context on top: a persistent side effect (the file is registered as created for the year, visible under Tax and declaration), the returned payload shape (file contents as text plus the applicable year), the ISO 8859-1 encoding requirement, and the assurance that nothing is sent to Skatteverket. It does not restate annotation semantics, though it could have tied the side effect more explicitly to the non-read-only hint.

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 concrete deliverable, then alternates, prerequisites, return format and side effects — a logical order with no filler sentences. It is on the dense side (six clauses) and the note that the tax follows the choices saved on the tax page is somewhat tangential, keeping it from a 5.

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?

With no output schema, the description carries the return-value burden itself and does so: file names, contents returned as text, the applicable year, encoding requirement, error behavior on missing prerequisites, and the persistent side effect. An agent has everything needed to call it and warn the user about the side effect.

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 coverage is 100% and both parameters (year, orgnr) are fully documented in the schema, including the year-definition and the 'omit for latest fiscal year' default. The description adds little parameter-level detail, only the indirect note about required postal data, 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?

States a specific verb and concrete artifacts: it produces INK2 as SRU files (INFO.SRU and BLANKETTER.SRU) for a fiscal year, populated from the closing accounts. It also explicitly names the adjacent tool read_tax as the one for the actual tax calculation, so the agent can separate the two without opening schemas.

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 trigger (when the user will submit the income tax return themselves at Skatteverket) and an explicit alternative with its condition (use read_tax for the tax computation itself). It also adds a precondition — postcode and postal town must be known — and states that a descriptive error is returned if they are missing.

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.