Skip to main content
Glama

Spara årsredovisnings-inputs

set_arsredovisning_inputs
DestructiveIdempotent

Skriv en delmängd av årsredovisningens user_inputs till utkastet (assistenten föreslår, användaren godkänner, sedan skriv) och få tillbaka det uppdaterade status-svaret (samma form som get_arsredovisning_status). Fältnamnen är exakt de i buildUserInputs/ixbrl_inputs (t.ex. sate, verksamhet, inkludera_utdelning); ett okänt fältnamn avvisas med förslag på giltiga fält. Belopp i HELA KRONOR. Personnummer tas inte emot (fastställelseintygets signerare anges av användaren i Kvickd under Årsredovisning > Underskrift). Scope statutory. Argument: orgnr, year, inputs (dict med delmängd av fälten).

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>",
      "inputs": "<inputs>"
    },
    "name": "set_arsredovisning_inputs"
  }
}

Input Schema

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

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.8/5.0
Behavior3/5

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

Adds real context beyond the annotations: writes to the draft (not the final report), returns the updated status in the same shape as get_arsredovisning_status, rejects unknown field names with suggestions, and excludes personnummer. However, with destructiveHint=true it never says whether existing values for the supplied fields are overwritten or what is lost, which is the key behavioral fact an agent needs.

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 return behavior, then layers constraints (field naming, units, personnummer exclusion, scope). Dense but every clause carries information; the parenthetical about where the signer is set is slightly tangential but justifies the personnummer restriction.

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?

Given three required params, a nested free-form object, no output schema, and destructive annotations, the description covers validation behavior, units, excluded data, and return shape by reference to get_arsredovisning_status. The omitted pieces are overwrite semantics and the meaning of 'year'.

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 only 33% (only orgnr is documented), so the description has to compensate, and it largely does: field names are exactly those in buildUserInputs/ixbrl_inputs with examples (sate, verksamhet, inkludera_utdelning), amounts are in whole SEK, unknown names are rejected, and inputs is a dict of a subset of fields. 'year' is still never explained (fiscal vs calendar year), which is the remaining gap.

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 and resource ('skriv en delmängd av årsredovisningens user_inputs till utkastet') plus scope ('Scope statutory'), which is clear. It does not explicitly distinguish itself from the sibling edit_annual_report_draft, so the agent must infer the boundary between them.

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?

Provides a concrete workflow prerequisite — the assistant proposes, the user approves, then the write happens — which tells the agent when this call is appropriate. It stops short of naming when not to use it or pointing to edit_annual_report_draft as an alternative.

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.