Skip to main content
Glama

Skapa bolag

create_company

Lägg till ett bolag i koncernen (seedar BAS-kontoplanen). Scope book. Argument: orgnr, name, fiscal_year, fiscal_year_end_month (räkenskapsårets slutmånad 1-12; 12 = jan-dec, 11 = dec-nov), vat_period (manad|kvartal|ar, eller ingen om bolaget inte är momsregistrerat); valfritt city, first_fy_start och first_fy_end (ISO-datum) för ett nystartat bolags avvikande första räkenskapsår, t.ex. 2026-01-13 till 2026-12-31 (högst 18 månader; slutet måste vara sista dagen i slutmånaden, utelämnat = närmaste årsslut). Bolaget bokförs enligt fakturametoden. legal_form: bolagsformen när kontot har fler bolagsformer påslaget (ab, hb, kb, ek, brf, if, st; utelämnat = föreslås ur organisationsnumret och namnet). En enskild firma läggs till i appen, eftersom ägarens personnummer inte tas emot här.

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>",
      "name": "<name>",
      "fiscal_year": "<fiscal_year>",
      "fiscal_year_end_month": "<fiscal_year_end_month>",
      "vat_period": "<vat_period>"
    },
    "name": "create_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
nameYes
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
legal_formNo
vat_periodYes
fiscal_yearYes
first_fy_endNo
first_fy_startNo
fiscal_year_end_monthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / legal_form
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Legal Form"
      +}
  2. Changed1 schema field changed
    • removedInput schema / properties / accounting_method
      Removed value: -{
      -  "default": "faktura",
      -  "title": "Accounting Method",
      -  "type": "string"
      -}
  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.7/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-destructive create; the description adds substantial behavior beyond that: BAS chart seeding, fakturametoden accounting method, the 18-month cap on a first fiscal year, the rule that the end must be the last day of the end month, and the legal-form inference. These are exactly the consequences an agent needs before writing.

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?

Purpose and scope are front-loaded before the argument list, and no sentence is filler. The argument section is a long semicolon-chained run-on, which costs readability but not information density.

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?

Nine parameters, five required, no output schema and no annotation depth — yet the description covers every parameter's meaning, the conditional first-fiscal-year path, defaults, and the one unsupported case. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 11% and the schema declares no enums, so the description carries the burden and does: it enumerates vat_period values (manad|kvartal|ar or none when not VAT-registered), explains fiscal_year_end_month numbering with concrete mappings (12 = jan-dec, 11 = dec-nov), lists legal_form codes (ab, hb, kb, ek, brf, if, st), and constrains the ISO first_fy_start/first_fy_end pair with a worked example.

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 precise verb and resource ("Lägg till ett bolag i koncernen") plus the non-obvious side effect that it seeds the BAS chart of accounts, and names the scope (book). An agent can distinguish this from get_company/update_company purely from the description.

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 clear when-not: an enskild firma cannot be created here because the owner's personnummer is not accepted, so it must be added in the app. It also explains defaults (omitted legal_form is derived from orgnr and name; omitted first_fy_end defaults to nearest year-end). It stops short of naming sibling alternatives such as update_company for existing companies.

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.