Skip to main content
Glama

Lista lönekörningar

list_payroll_runs
Read-onlyIdempotent

Listar lönekörningarna för ett år i ordning efter utbetalningsdag, och med en månad angiven även arbetsgivardeklarationens (AGI) sammanställning för månaden. Använd för att se vad som har betalats ut; för en anställds lönebesked, använd get_payslip, och för att räkna fram en ny lön, använd calc_payroll. Returnerar per körning id, period, utbetalningsdag, status (pending = utkast som väntar på godkännande i Kvickd och inte är bokfört, booked eller reversed), verifikat och rader per anställd med bruttolön, förmåner, skatteavdrag, arbetsgivaravgift och nettolön i öre. AGI-sammanställningens individuppgifter visar personnumret maskat till födelsedatum (ÅÅÅÅMMDD-XXXX); själva AGI-filen laddas ner i Kvickd under Lön > Löner. Läser bara, ändrar inget. Svaret innehåller personuppgifter (bankkonto); visa bara det användaren behöver.

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

Input Schema

NameRequiredDescriptionDefault
yearYesKalenderår för lönekörningarna, t.ex. 2026.
monthNoValfritt: månad 1 till 12. Anges den följer AGI-sammanställningen för månaden med.
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. Changed2 schema fields changed
    • addedInput schema / properties / month / description
      Added value: +"Valfritt: månad 1 till 12. Anges den följer AGI-sammanställningen för månaden med."
    • addedInput schema / properties / year / description
      Added value: +"Kalenderår för lönekörningarna, t.ex. 2026."
  2. 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."
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so 'Läser bara, ändrar inget' is largely redundant. The description does add real value beyond them: it decodes the status values (pending = draft awaiting approval in Kvickd and not booked, booked, reversed), says the AGI individual data is masked to birth date and that the actual file is downloaded elsewhere, and warns that the response contains PII such as bank accounts to be shown only as needed.

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 the purpose and the alternatives, then return shape, then caveats; every sentence carries information. It is a dense single block however, and the 'Läser bara, ändrar inget' clause duplicates the annotations without adding anything.

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?

With no output schema, the description carries the burden of describing returns and does so thoroughly: per-run id, period, payment date, status, voucher, per-employee rows with gross, benefits, tax, employer contributions and net in öre. Only minor gaps remain, such as whether the list is paginated or what happens when no runs exist for the year.

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?

Schema coverage is 100% and each parameter is already described (year as calendar year, month 1–12 optional, orgnr with the list_companies hint). The description's note that supplying a month also pulls in the AGI summary restates the schema's own wording rather than adding syntax or format detail, so the baseline 3 applies.

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 ('Listar lönekörningarna'), the scope ('för ett år'), the ordering ('i ordning efter utbetalningsdag') and the conditional extra (AGI-sammanställning when a month is given). It explicitly distinguishes itself from get_payslip and calc_payroll, so an agent can route without opening any 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 explicit when-to-use ('Använd för att se vad som har betalats ut') plus two named alternatives with the condition that selects each: get_payslip for an individual payslip and calc_payroll for computing a new salary. That is the when/when-not/alternative triad in one sentence.

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.