Skip to main content
Glama

Lås upp räkenskapsår

unlock_fiscal_year
DestructiveIdempotent

Låser upp ett räkenskapsår igen, alla dess månader, så att rättelser kan bokföras. Använd bara när användaren uttryckligen vill rätta i ett låst år; en rättelse kan ofta göras utan upplåsning med ett motverifikat i en öppen period (reverse_voucher), och för att låsa igen, använd lock_fiscal_year. Returnerar årets låsstatus. Bieffekt: årets perioder öppnas för bokföring. Kräver behörigheten book.

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

Input Schema

NameRequiredDescriptionDefault
yearYesRäkenskapsåret, angivet som året då räkenskapsåret slutar, t.ex. 2025 (för 2024-07-01 till 2025-06-30 anges 2025).
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
    • 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)."
  2. 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."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint/readOnlyHint=false, and the description adds genuinely new behavioral facts on top: the side effect that all periods in the year are reopened for booking, the required permission ('book'), and that the call returns the year's lock status. That is exactly the additional context annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each carrying distinct load: what it does, when to use it and what not to use, the return value, the side effect and the permission. The primary action and the guardrail are front-loaded with zero filler.

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 destructive mutation with two fully documented parameters and no output schema, the description covers effect, prerequisite permission, side effect, return value and alternatives. An agent has everything needed to decide and to call it safely.

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 both parameters are documented in-schema, including the subtle fiscal-year-end convention for 'year' and the orgnr format with a pointer to list_companies. The description adds no parameter-level guidance beyond that, so the baseline of 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 resource ('Låser upp ett räkenskapsår') plus the scope of the effect ('alla dess månader') and the outcome ('så att rättelser kan bokföras'). It is immediately distinguishable from lock_fiscal_year and from reverse_voucher, which are both named.

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 gating condition ('Använd bara när användaren uttryckligen vill rätta i ett låst år'), an explicit cheaper alternative with its condition ('ett motverifikat i en öppen period (reverse_voucher)'), and the inverse tool to use afterwards (lock_fiscal_year). Nothing about when to select this tool 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.