Skip to main content
Glama

Ersätt delägarna

set_partners
DestructiveIdempotent

Ersätter handelsbolagets eller kommanditbolagets delägare: lista med name, share_pct (andel i procent, tillsammans 100), kind (person eller company), orgnr (bara för en juridisk person; personnummer tas aldrig emot), limited (true för kommanditdelägare, bara i kommanditbolag) och insats_ore (kommanditdelägarens insats). Två till fyra delägare (BAS). slot (1-4) är delägarens konton: skicka med befintliga delägares slot så att ingen byter konton; nya delägare får en ledig plats. Andelarna fördelar årets resultat på delägarnas konton (2019, 2029 osv.). Låsta räkenskapsår behåller delägarna som de var när året låstes. Bekräfta med användaren först. Scope statutory. Argument: orgnr, partners.

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>",
      "partners": "<partners>"
    },
    "name": "set_partners"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
partnersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, and the description goes beyond them by explaining consequences: locked fiscal years keep partners as they were, existing partners' slot values must be preserved so accounts don't shift, and shares drive the distribution of the year's result. It does not cover error behavior (e.g. percentages not summing to 100) or permission requirements, keeping it at 4.

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?

Dense but front-loaded, starting with the replacement action before listing fields and constraints. Some sentences are run-on and mix field documentation with business rules, but every clause carries information an agent needs.

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 destructive two-parameter tool with no output schema and a nested partner structure, the description supplies the missing nested-field contract, constraints, and account/result-allocation effects. Only the response shape and failure modes for invalid input are left unstated, which is minor here.

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 50% — the entire `partners` array is an untyped object with no item schema — so the description must carry the load, and it does: it enumerates name, share_pct (percent, must total 100), kind (person/company), orgnr (legal entities only, personnummer never accepted), limited (kommanditbolag only), insats_ore, and slot (1-4) with its preservation rule.

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?

Opens with a specific verb+resource in context: 'Ersätter handelsbolagets eller kommanditbolagets delägare' (replaces the partners of a partnership/limited partnership). It also scopes the entity type, which distinguishes it clearly from sibling tools like update_company or read_statutory_status.

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 concrete usage context: 'Bekräfta med användaren först' (confirm with the user first), 'Scope statutory', the 2-4 partner limit, and that locked fiscal years retain their partners. It never names an alternative sibling tool, so it falls short of a 5, but the when-to-use and safety guidance is 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