Skip to main content
Glama

Hämta lönebesked

get_payslip
Read-onlyIdempotent

Hämta lönebeskedet för en lönerad som utskrivbar HTML (line_id från en lönekörnings rader, se list_payroll_runs). Den anställdes personnummer visas maskerat till födelsedatum (ÅÅÅÅMMDD-XXXX); lönebeskedet med fullständigt personnummer skrivs ut i Kvickd under Lön > Löner. Scope view. Argument: orgnr, line_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>",
      "line_id": "<line_id>"
    },
    "name": "get_payslip"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
line_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

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description adds real value: the response is printable HTML and the personal number is masked to birth date (ÅÅÅÅMMDD-XXXX), with the full number only available in the Kvickd UI. That masking/scope disclosure helps the agent set expectations about return data.

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: what it returns, where line_id comes from, and the masking caveat all appear in the first two sentences. The Kvickd-UI note is useful though slightly parenthetical; nothing is redundant.

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 annotations covering safety and no output schema, the description supplies the missing return-format and privacy context. Only minor gaps remain, such as error behavior for an unknown line_id or whether the HTML is meant for scraping versus display.

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 50%, with only orgnr documented in the schema. The description compensates for the missing line_id documentation by explaining it is a row id from a payroll run and pointing to list_payroll_runs, and it enumerates both arguments.

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 (retrieve the payslip for a payroll line) plus the output form (printable HTML). It also places itself in the workflow by noting line_id comes from a payroll run's rows via list_payroll_runs, so an agent can distinguish it from the list/reporting siblings.

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?

The description gives the prerequisite chain clearly: the caller needs orgnr and a line_id obtained from list_payroll_runs. It does not spell out when-not to use it or mention alternatives, but the context is unambiguous.

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.