Skip to main content
Glama

Läs skatteberäkning och INK2

read_tax
Read-onlyIdempotent

Läser skatteberäkningen och INK2 exakt som steg 3 i webbguiden visar dem.

Kräver att utkastet är öppet i AI-läge och står på steg 3 (gå dit med next_step eller go_to_step). Siffrorna räknas av plattformen; räkna inte om dem själv.

Returnerar result (INK2S-rader med SRU-kod och belopp, skattemässigt resultat, beskattningsbar inkomst, skatt, särskild löneskatt, periodiseringsfond, bokföringsinstruktioner, INK2R-rader), to_book (det som återstår att justera in i steg 2; justeras med apply_tax_adjustment), ink2r_balanced och sru_ready (om INK2-filen kan laddas ner).

Input Schema

NameRequiredDescriptionDefault
draft_idYesUtkastets id (draft_id), t.ex. från list_drafts. Utkastet måste tillhöra det anslutna kontot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. The description adds genuinely useful context the annotations lack: the required server-side state (AI mode, step 3) and the instruction not to recompute platform numbers. It does not, however, describe failure behavior or what happens if the preconditions aren't met.

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, then preconditions, then the return contents. All three blocks carry real information, though the enumerated return list is dense and slightly verbose. Nothing is redundant enough to flag as waste.

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 burden of explaining returns, and it does so thoroughly (result contents, to_book, ink2r_balanced, sru_ready). Combined with the precondition and navigation guidance, an agent has everything needed to call this tool correctly.

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 description coverage is 100% and the single parameter (draft_id) is already fully documented in the schema, including its source (list_drafts) and ownership constraint. The description adds nothing about draft_id, 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 (Läser/Reads) and resource (skatteberäkningen and INK2), and pins the scope to 'exactly as step 3 in the web guide shows them'. It also names the sibling that handles the follow-up mutation (apply_tax_adjustment), so the agent can distinguish this read tool from the adjustment tool.

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 explicit preconditions (draft must be open in AI mode and standing on step 3) and names the navigation tools (next_step, go_to_step) to reach that state. It further routes the follow-up action to apply_tax_adjustment, so when-to-use and what-to-do-next are both 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.