Skip to main content
Glama

Ändra bolag

update_company
DestructiveIdempotent

Ändra ett bolags inställningar (namn, ort, räkenskapsår, momsperiod). Scope book. Argument: orgnr (eller company_id från list_companies); valfritt name, city, fiscal_year, fiscal_year_end_month (slutmånad 1-12), vat_period, first_fy_start/first_fy_end (ISO-datum, avvikande första räkenskapsår för nystartat bolag, högst 18 månader) och clear_first_fy=true för att ta bort det. Ändrat räkenskapsår räknar om verifikatens år; nekas om bolaget har låsta perioder.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
nameNo
orgnrNoBolagets organisationsnummer (i stället för company_id), t.ex. 559900-1004.
company_idNo
vat_periodNo
fiscal_yearNo
first_fy_endNo
clear_first_fyNo
first_fy_startNo
fiscal_year_end_monthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / company_id / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / company_id / default
      Added value: +null
    • removedInput schema / properties / company_id / type
      Removed value: -"integer"
    • addedInput schema / properties / orgnr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Bolagets organisationsnummer (i stället för company_id), t.ex. 559900-1004.",
      +  "title": "Orgnr"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "company_id"
      -]
  2. Changed1 schema field changed
    • removedInput schema / properties / accounting_method
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Accounting Method"
      -}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real behavioral context beyond them: changing the fiscal year recalculates voucher years, the call is denied if the company has locked periods, and clear_first_fy=true removes a previously set deviating first fiscal year. What remains undisclosed is whether omitted/null fields are left untouched and what the response contains.

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 in the first sentence, followed by a compact argument list; nothing is padded. A few parentheticals (e.g. the orgnr example) restate schema content, and the run-on argument sentence is dense, but overall it is efficient.

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?

For a 10-parameter, destructive mutation with no output schema and near-zero schema coverage, the description covers identifiers, all field semantics, a side effect, and a failure condition. It falls short only on return behavior and the merge/null semantics of optional fields.

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?

With schema description coverage at 10%, the description carries almost all parameter meaning and does so for nearly every field: orgnr as an alternative to company_id, fiscal_year_end_month constrained to 1-12, first_fy_start/first_fy_end as ISO dates capped at 18 months, and clear_first_fy as a boolean removal flag. Gaps remain for vat_period's accepted values and the exact meaning of fiscal_year.

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 ('Ändra ett bolags inställningar') and enumerates the settings in scope (namn, ort, räkenskapsår, momsperiod), so the agent knows exactly what changes. It references list_companies as the source of company_id, which hints at the sibling boundary, but it never contrasts itself with create_company or get_company.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage (modify existing company settings, identified by orgnr or company_id from list_companies) and mentions one precondition (locked periods cause refusal). It gives no explicit when-not guidance, e.g. that new companies belong to create_company or that read-only inspection belongs to get_company.

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.