Skip to main content
Glama

Hämta företagsuppgifter från Bolagsverket

fetch_company_details
DestructiveIdempotent

Hämtar företagsuppgifterna från Bolagsverket i steg 1 och fyller i dem i utkastet.

Fyller i namn, registrerat räkenskapsår, företrädare och förslag på säte och verksamhet, som knappen "Hämta företagsuppgifter" i guiden. Ersätter befintliga företagsuppgifter, och undertecknarna i steg 6 om de inte har ändrats för hand. Organisationsnumret kommer från SIE-filen eller skrivs i sökfältet med fill_input först. Krävs innan steg 1 kan lämnas. Svarar först när Bolagsverket har svarat (högst cirka 20 sekunder). Hittar Bolagsverket inget bolag blir svaret ett fel och inga uppgifter fylls i.

Returnerar found, bolagsverket_hamtad, org_nr och snapshot efteråt.

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": {
      "draft_id": "<draft_id>",
      "org_nr": "<org_nr>"
    },
    "name": "fetch_company_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
org_nrYesBolagets organisationsnummer, NNNNNN-NNNN (t.ex. 559515-1589); bindestrecket får utelämnas. Samma nummer som i steg 1.
draft_idYesUtkastets id (draft_id), t.ex. från list_drafts. Utkastet måste tillhöra det anslutna kontot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / org_nr / description
      Previous value: -"Bolagets organisationsnummer, NNNNNN-NNNN (t.ex. 559515-1589). Samma nummer som i steg 1."New value: +"Bolagets organisationsnummer, NNNNNN-NNNN (t.ex. 559515-1589); bindestrecket får utelämnas. Samma nummer som i steg 1."
    • removedInput schema / properties / org_nr / pattern
      Removed value: -"^\\d{6}-\\d{4}$"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses exactly what is overwritten (existing company details and step 6 signatories unless manually edited), the ~20 second blocking latency against an external register, and the failure mode when Bolagsverket returns no match (error response, nothing filled in). These side-effect and error details are precisely what an agent needs before triggering a destructive call.

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 action, then layered with side effects, latency and error behavior, all of which earn their place. There is minor redundancy in repeating 'fyller i' across the opening lines and a slightly loose list structure, but no 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?

Although there is no output schema, the description names the returned keys (found, bolagsverket_hamtad, org_nr, snapshot) and covers the error branch, the blocking wait and the destructive overwrite. Nothing an agent needs to call this correctly is missing.

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 100%, so both org_nr and draft_id are already documented, including format and the requirement that the draft belong to the connected account. The description only adds the workflow origin of org_nr (SIE file or fill_input), which is contextual rather than additional parameter meaning.

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 ('Hämtar företagsuppgifterna från Bolagsverket') and enumerates exactly which draft fields get populated (namn, registrerat räkenskapsår, företrädare, säte, verksamhet). It also separates itself from the sibling fill_input by explaining that fill_input is the way the org number is entered, not the way details are fetched.

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?

Gives a hard precondition ('Krävs innan steg 1 kan lämnas') and the ordering rule that the org number comes from the SIE file or must be written with fill_input first. It does not explicitly state when not to call it, but the sequencing and prerequisite are unambiguous.

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.