Skip to main content
Glama

Generera iXBRL

generate_ixbrl
Read-onlyIdempotent

Genererar årsredovisningen (K2) som iXBRL-fil för Bolagsverket utifrån årsredovisningsguidens uppgifter. Använd när get_arsredovisning_status visar att allt är klart; ofullständiga uppgifter ger ett fel som säger vad som saknas. Skicka med alla uppgifter i user_inputs, t.ex. payload.user_inputs från read_annual_report_draft; det sparade utkastet fylls inte i av sig självt. Ange räkenskapsåret med year; året måste vara avslutat (skatten låst och året låst). Returnerar XHTML-dokumentet som text. Sparar och skickar inget; inlämningen till Bolagsverket görs av användaren. 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>",
      "user_inputs": "<user_inputs>"
    },
    "name": "generate_ixbrl"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoRäkenskapsåret, angivet som året då räkenskapsåret slutar, t.ex. 2025 (för 2024-07-01 till 2025-06-30 anges 2025). Utelämna för året i user_inputs.fy_end, eller om det saknas det senaste räkenskapsåret med verifikat.
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
user_inputsYesÅrsredovisningsguidens alla uppgifter, samma fält som i set_arsredovisning_inputs, med belopp i hela kronor. Hämta t.ex. payload.user_inputs med read_annual_report_draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / year
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "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). Utelämna för året i user_inputs.fy_end, eller om det saknas det senaste räkenskapsåret med verifikat.",
      +  "title": "Year"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / user_inputs / description
      Added value: +"Årsredovisningsguidens alla uppgifter, samma fält som i set_arsredovisning_inputs, med belopp i hela kronor. Hämta t.ex. payload.user_inputs med read_annual_report_draft."
  3. 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."
  4. 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: states the return value ('Returnerar XHTML-dokumentet som text'), clarifies that nothing is saved or submitted ('Sparar och skickar inget; inlämningen ... görs av användaren'), and names the required permission ('Kräver behörigheten statutory'). This resolves any ambiguity left by readOnlyHint on a 'generate' operation.

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 and prerequisites, and each sentence carries distinct information (precondition, parameter source, year constraint, return value, side effects, auth). It is dense but not padded; a slightly tighter ordering of the year constraint would make it a 5.

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 tool with a nested free-form payload and no output schema, the description covers prerequisites, data sourcing, return format, side effects and permissions. An agent has everything needed to call it correctly without opening the schema.

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 the baseline is 3, but the description adds real meaning: it directs the agent to pass all data in user_inputs (e.g. payload.user_inputs from read_annual_report_draft) and notes the draft is not auto-populated, plus the constraint that year must be a closed fiscal year. The nested-object payload is the highest-risk parameter and is well covered.

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 ('Genererar årsredovisningen (K2) som iXBRL-fil för Bolagsverket') plus the data source (årsredovisningsguidens uppgifter). This immediately distinguishes it from sibling tools like read_annual_report_draft, set_arsredovisning_inputs and download_ink2_sru.

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 precondition tied to a named sibling ('Använd när get_arsredovisning_status visar att allt är klart') and explains the failure mode when it isn't met. It also names the source for user_inputs and warns that the saved draft is not auto-filled, which is the main misuse trap.

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.