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.). Räkenskapsår där årets resultat är bokfört (och låsta år) behåller delägarna som de var då. 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.6/5.0
Behavior5/5

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

Beyond the destructive/idempotent annotations, it discloses the key consequences: the entire partner list is replaced, shares drive allocation of årets resultat onto accounts 2019/2029, historical and locked fiscal years keep their original partners, and existing partners' slot values must be passed so nobody's account changes. It also states a data-protection rule (personnummer tas aldrig emot) and requires user confirmation before executing — exactly the context a destructive write needs.

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?

Every sentence carries information and the verb+resource leads, but the body is a single dense run-on with stacked parentheticals where a field list would scan faster. Efficient in length, weaker in structure.

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, annotation-covered mutation with an under-typed nested array and no output schema, the description covers fields, constraints, side effects and the confirmation requirement. Residual ambiguity is minor: the '(BAS)' reference and the exact return/error behavior are left implicit.

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% and the partners array is an untyped object with additionalProperties, so the description must carry the burden — and it does, enumerating name, share_pct (must sum to 100), kind, orgnr (legal persons only), limited (KB only) and insats_ore, plus the 1-4 slot semantics and reuse rule. This adds substantial meaning the schema does not encode.

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 precise verb+resource: 'Ersätter handelsbolagets eller kommanditbolagets delägare' — replacing the full partner list of an HB/KB. The entity scope (trading partnership / limited partnership) and the complete-replacement semantics are stated up front, so an agent can tell this apart from generic company-update tools without opening the schema.

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 clear operative conditions: two to four partners, use of BAS, and the explicit instruction 'Bekräfta med användaren först'. It also carves out when the tool does not take effect ('Räkenskapsår där årets resultat är bokfört (och låsta år) behåller delägarna som de var då'). No sibling alternative is named, which keeps it at 4 rather than 5.

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.