Skip to main content
Glama

Bokför ROT/RUT-utbetalning

register_rot_rut_payout

Registrera Skatteverkets utbetalning för en ROT/RUT-begäran. KODEN postar: D likvidkonto / K 1513 för det utbetalda. Nekade Skatteverket hela eller delar av ett ärende, ange beviljat belopp i approved ([{item_id, approved_ore}]); skillnaden flyttas till kundens fordran (D 1510 / K 1513) och fakturan blir delbetald så att kunden kan faktureras resten. Utelämnade ärenden räknas som helt beviljade. Kräver scope book; bokföringstaket får inte överstigas. Argument: orgnr, request_id, pay_date (YYYY-MM-DD); valfritt approved, bank_account (likvidkonto 1900-1999 eller skattekontot 1630, default 1930).

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>",
      "pay_date": "<pay_date>"
    },
    "name": "register_rot_rut_payout"
  }
}

Input Schema

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

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

A4.6/5.0
Behavior5/5

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

Annotations only give the generic safety profile (not read-only, not destructive, not idempotent), while the description discloses the actual bookkeeping side effects: the debit/credit pair for the paid amount, the reclassification of the denied difference to the customer receivable (D 1510 / K 1513), the resulting partial payment status of the invoice, and the scope/ceiling constraints. This is exactly the kind of consequence-level context annotations cannot carry.

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: purpose first, then posting behavior, then edge-case handling, then a compact argument recap. The ledger notation and trailing parameter list are slightly repetitive, but nearly every clause carries actionable information.

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 non-idempotent mutation with no output schema and thin schema descriptions, the description covers side effects, defaults, permissions and limits well. It stops short of warning about re-posting duplicates or pointing to reverse_rot_rut_payout for corrections, which would close the remaining gap.

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 20% and the `approved` and `bank_account` properties are essentially untyped in the schema, yet the description supplies the exact shape [{item_id, approved_ore}], the date format YYYY-MM-DD, the allowed account ranges (1900-1999 or 1630) and the default 1930. It compensates almost entirely for the schema gap.

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?

Specific verb (Registrera) plus precise resource (Skatteverkets utbetalning för en ROT/RUT-begäran), and it goes further by spelling out the exact journal entry produced (D likvidkonto / K 1513). An agent can distinguish this from reverse_rot_rut_payout or mark_rot_rut_request_submitted purely from the description.

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?

It establishes the scenario clearly (book Skatteverket's payout for a request) and tells the caller what to do when the request was wholly or partly denied, including that omitted items count as fully approved. It does not explicitly route to or exclude a sibling such as reverse_rot_rut_payout, which would have earned a 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.