Skip to main content
Glama

Skapa ROT/RUT-begäran

create_rot_rut_request

Skapa en begäran om utbetalning till Skatteverket för betalda ROT- eller RUT-fakturor (se att_begara i list_rot_rut). ROT och RUT begärs var för sig, alla fakturor ska vara betalda samma år och en begäran rymmer högst 100 köpare. Skapar ett ärende per köpare med köparens personnummer som användaren lagt in på fakturan i Kvickd (be aldrig om personnummer i chatten; saknas ett ges ett fel med var det läggs in). Inget skickas till Skatteverket: kontrollera filen med check_rot_rut_request_file och låt användaren ladda ner den i Kvickd och lämna den i e-tjänsten Rot och rut. Scope reconcile. Argument: orgnr, type (ROT|RUT), invoice_ids; valfritt name (högst 16 tecken).

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>",
      "type": "<type>",
      "invoice_ids": "<invoice_ids>"
    },
    "name": "create_rot_rut_request"
  }
}

Input Schema

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

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.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description discloses the key behavioral traits: one ärende is created per buyer keyed on the invoice's personnummer, nothing is transmitted to Skatteverket, and a missing personnummer yields an error pointing to where it is entered. That is exactly the context an agent needs to avoid duplicated or misfired requests.

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?

The purpose and the statement that nothing is sent to Skatteverket are front-loaded, and each subsequent sentence contributes a constraint or a next step. It is dense parenthetical prose that takes a second read, but no sentence is filler.

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 mutating tool with no output schema, the description covers inputs, constraints, error behavior, and the downstream workflow well. It omits what the call returns (e.g. a request/ärende identifier) and never mentions that delete_rot_rut_request exists for cleanup, which would matter for an idempotentHint=false creation tool.

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

Parameters4/5

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

Schema coverage is only 25% (orgnr is the only documented property), so the description carries real weight here: it supplies the ROT|RUT enum values the schema lacks, the 16-character limit on name, and the semantics of invoice_ids (paid invoices, same year, max 100 buyers). It stops short of saying where invoice_ids should be sourced from, which is the one remaining 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?

The description opens with a specific verb plus resource — create a payout request to Skatteverket for paid ROT/RUT invoices — and immediately scopes it apart from the siblings (list_rot_rut, check_rot_rut_request_file, mark_rot_rut_request_submitted). An agent can distinguish this from any other sibling 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the preconditions (all invoices must be paid in the same year, ROT and RUT are requested separately, max 100 buyers), points to list_rot_rut's att_begara for eligibility, and prescribes the required follow-up with check_rot_rut_request_file plus manual submission in the e-service. It also gives an explicit prohibition: never ask for the personnummer in chat.

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.