Skip to main content
Glama

Backa ROT/RUT-utbetalning

reverse_rot_rut_payout
Destructive

Backa en registrerad ROT/RUT-utbetalning (postar ett omvänt verifikat) så att Skatteverkets beslut kan registreras om. Går inte om kunden redan betalat ett nekat belopp. KODEN postar. Scope book. Argument: orgnr, request_id.

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>",
      "request_id": "<request_id>"
    },
    "name": "reverse_rot_rut_payout"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds non-obvious behavior: a reversing voucher is actually posted ('KODEN postar'), i.e. it books rather than drafting, and it aborts if a denied amount was already paid out. Permissions/irreversibility are left to the annotations.

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 is front-loaded and the trailing sentences are short and functional. The telegraphic fragments ('KODEN postar. Scope book.') are terse but each carries information; 'Scope book' is the least informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive accounting mutation with no output schema, the description adequately covers what happens and when it fails, but it leaves request_id unexplained and doesn't say how to obtain it or what state the payout must be in to be reversible.

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

Parameters2/5

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

Schema coverage is only 50%: orgnr is well documented in the schema, but request_id has no description anywhere. The description merely restates the parameter names ('Argument: orgnr, request_id') and adds no meaning, such as where request_id comes from (presumably list_rot_rut) or what it identifies.

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 + resource ('Backa en registrerad ROT/RUT-utbetalning') and the mechanism ('postar ett omvänt verifikat'), which separates it from register_rot_rut_payout and plain reverse_voucher. Sibling tools are not named explicitly, so differentiation is contextual rather than explicit.

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 the use case (so Skatteverkets beslut kan registreras om) and a concrete when-not condition ('Går inte om kunden redan betalat ett nekat belopp'). Alternatives are not named, but the failure precondition is a real usage constraint.

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.