Skip to main content
Glama

ROT/RUT-läget

list_rot_rut
Read-onlyIdempotent

Visar läget för ROT- och RUT-avdrag: fakturor där utbetalning kan begäras nu, fakturor som väntar på kundens betalning, gjorda begäranden till Skatteverket och gällande regler. Använd innan du skapar en begäran med create_rot_rut_request; för filen till Skatteverket, använd check_rot_rut_request_file. Returnerar fakturorna med avdragsbelopp och deadline, begärandena med status (skapad, inskickad eller klar) och belopp, summor i öre, arbetstyper samt procentsatser och tak. Läser bara, ändrar inget. Köparnas personnummer visas bara maskerade (ÅÅÅÅMMDD-XXXX).

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

Input Schema

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

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 already declare readOnly/idempotent/non-destructive, and the description still adds value beyond them: it discloses that personal identity numbers are returned only masked (ÅÅÅÅMMDD-XXXX), that amounts are in öre, and that requests carry a status of skapad/inskickad/klar. It also confirms 'Läser bara, ändrar inget', consistent with the annotations rather than contradicting them.

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?

Front-loaded with purpose, then usage routing, then return contents and the privacy note. Dense but every sentence carries information; slightly long for a read-only list tool, which keeps it from a 5.

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

Completeness5/5

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

With no output schema, the description compensates fully by describing what is returned (invoices with deduction amounts and deadlines, requests with statuses and amounts, sums in öre, work types, percentages and caps). Combined with the safety annotations and documented parameter, an agent has everything needed to call it correctly.

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

Parameters3/5

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

The single parameter orgnr has 100% schema description coverage including format, example, and a pointer to list_companies, so the schema does the heavy lifting. The description adds nothing about the parameter, which is the expected baseline 3 under high coverage.

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?

States a specific verb and resource ('Visar läget för ROT- och RUT-avdrag') and enumerates the four things it surfaces (requestable invoices, invoices awaiting customer payment, submitted requests, current rules). It also explicitly names the two sibling tools it is not (create_rot_rut_request, check_rot_rut_request_file), so an agent can route without opening a 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?

Gives an explicit precondition ('Använd innan du skapar en begäran med create_rot_rut_request') and an explicit alternative for a different intent ('för filen till Skatteverket, använd check_rot_rut_request_file'). Both when-to-use and when-to-use-something-else are spelled out.

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.