Skip to main content
Glama

Ändra bolag

update_company
Idempotent

Ändra ett bolags inställningar (namn, ort, räkenskapsår, momsperiod, bokföringsmetod). Scope book. Argument: company_id; valfritt name, city, fiscal_year, fiscal_year_end_month (slutmånad 1-12), vat_period, accounting_method (faktura|kontant), 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNo
nameNo
company_idYes
vat_periodNo
fiscal_yearNo
first_fy_endNo
clear_first_fyNo
first_fy_startNo
accounting_methodNo
fiscal_year_end_monthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is partly covered. The description adds real behavioral context beyond that: changing the fiscal year recalculates the year of existing vouchers, and the operation is refused when locked periods exist. It still omits required permissions/authorization context.

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?

Two sentences, front-loading the purpose before the argument enumeration, with zero filler. The long parameter clause is justified by the 0% schema coverage, though it is quite dense and would benefit from tighter grouping.

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 mutation tool with no output schema and no schema-level descriptions, this covers every parameter plus the key side effect and failure condition. It stops short of describing auth requirements or what is returned, but nothing critical for a correct call 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 description coverage is 0% across 10 parameters, so the description must carry the burden — and it does. It labels company_id as the required argument, marks the rest optional, gives the fiscal_year_end_month range (1-12), the accounting_method enum (faktura|kontant), the ISO date format and 18-month cap for first_fy_start/end, and the semantics of clear_first_fy=true.

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 ("Ändra ett bolags inställningar") and enumerates the exact settings affected (name, city, fiscal year, VAT period, accounting method). An agent can immediately distinguish this from get_company, create_company, or search_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?

Usage is implied: it modifies an existing company's settings, and it names a hard precondition (mutation is denied if the company has locked periods) plus a 'Scope book' requirement. However, it never routes to alternatives such as create_company for new entities or get_company for reads, so the when-to-use guidance stays implied rather than explicit.

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.

Resources