Skip to main content
Glama

Spara hela årsredovisningsutkastet

edit_annual_report_draft
DestructiveIdempotent

Sparar hela utkastet till årsredovisningen för ett räkenskapsår, som när årsredovisningsguiden autosparar: resultat- och balansräkning, noter, förvaltningsberättelse och undertecknare. Använd bara när du har hela utkastet, t.ex. hämtat med read_annual_report_draft och ändrat; för att ändra enstaka uppgifter, använd set_arsredovisning_inputs, som skriver en delmängd och returnerar vad som återstår. Returnerar ok och när utkastet sparades. Bieffekt: det sparade utkastet ersätts med payload; postnummer och postort för INK2 behålls från det tidigare utkastet. Undertecknarnas personnummer ingår inte och tas inte emot; fastställelseintygets signerare anges av användaren i Kvickd under Årsredovisning > Underskrift vid inlämningen. 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>",
      "year": "<year>",
      "payload": "<payload>"
    },
    "name": "edit_annual_report_draft"
  }
}

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.
payloadYesHela utkastet i samma form som payload i read_annual_report_draft, med belopp i hela kronor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / payload / description
      Added value: +"Hela utkastet i samma form som payload i read_annual_report_draft, med belopp i hela kronor."
    • 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.8/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=true) by disclosing the concrete side effect: the stored draft is replaced by the payload, while postnummer/postort for INK2 are preserved from the previous draft. It also states the required 'statutory' permission, that signatory personnummer are neither included nor accepted, and that the call returns ok plus a save timestamp.

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-loads the core action and the alternative tool before the caveats, and every sentence carries information (replacement behavior, preserved fields, excluded personnummer, permission). Slightly dense with the fastställelseintyg/Kvick reference, but nothing is 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 whole-object overwrite with a nested free-form payload and no output schema, the description covers authorization, destruction/preservation semantics, what is rejected, and the return value. An agent has everything needed to call it safely and correctly.

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 100%, so orgnr and year are already documented. The description still adds meaning for the payload parameter by framing it as a complete replacement and calling out which fields survive from the prior draft (postnummer/postort), which is semantics the schema does not express. It largely restates the 'same form as read_annual_report_draft, whole kronor' wording already in the schema, which keeps it from a 5.

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 ('Sparar hela utkastet till årsredovisningen för ett räkenskapsår') and enumerates exactly what the draft contains (resultat- och balansräkning, noter, förvaltningsberättelse, undertecknare). It also names the sibling it is not (set_arsredovisning_inputs), so an agent can distinguish whole-draft save from partial update 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 ('Använd bara när du har hela utkastet, t.ex. hämtat med read_annual_report_draft och ändrat') and an explicit when-not with the correct alternative ('för att ändra enstaka uppgifter, använd set_arsredovisning_inputs'). It even explains how the alternative differs (writes a subset and returns what remains), 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.