Skip to main content
Glama

Bokför årsavslutssteg

book_year_end_step

Bokför ett årsavslutssteg. Har steget ett förslag (action='book') postar KODEN checklistans balanserade verifikat — LLM väljer bara steget. För ett manuellt steg (action='manual', t.ex. periodiseringar utan förslag) anger du en egen balanserad journal. Låser aldrig perioden (det gör en människa). Kräver scope book. Argument: orgnr, year, step (periodiseringar|dispositioner|aktuell_skatt|arets_resultat); valfritt journal ([{account, debit_ore, credit_ore, text?}]) för manuella steg.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepYes
yearYes
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
journalNo

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

A3.9/5.0
Behavior4/5

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

Annotations only give the generic safety profile (readOnly=false, destructive=false, idempotent=false). The description adds real context beyond that: it never locks the period (a human does), it requires scope book, and it discloses that for proposal-backed steps the code — not the LLM — writes the voucher. Consistent with annotations, no contradiction.

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 verb and resource, then mode rules, then the locking/scope caveats, then the argument summary. Dense but each sentence carries distinct information; no filler.

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 non-idempotent mutation with no output schema, the description covers the posting model, scope requirement, and all arguments, which is close to sufficient. It omits error/reversal behavior and the resulting voucher reference, and the unexplained action values leave a small gap.

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 only 25% (just orgnr), so the description must compensate, and it does list step's allowed values (periodiseringar|dispositioner|aktuell_skatt|arets_resultat) plus the journal element shape ({account, debit_ore, credit_ore, text?}). However it repeatedly references action='book'/'manual', a parameter absent from the schema, which risks leading an agent to pass a nonexistent argument.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Bokför ett årsavslutssteg') and immediately clarifies the division of labor between code and LLM. It is distinguishable from siblings like skip_year_end_step, undo_year_end_step and create_proposal by scope, though it never names those alternatives.

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?

Clear conditional routing: action='book' when a proposal exists (the code posts the balanced voucher, LLM only picks the step), action='manual' when the user supplies their own journal. This tells an agent exactly which branch to take, but stops short of naming sibling tools (undo/skip) or stating prerequisites like checklist state.

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