Skip to main content
Glama

Lönekonton

get_payroll_accounts
Read-onlyIdempotent

Visar vilka konton lönekörningen bokför på: löner, arbetsgivaravgifter (kostnad och skuld), personalens källskatt, utlägg, nettolöneavdrag, traktamenten och bilersättningar (skattefria och skattepliktiga delen över schablonen), med standardkonto och om bolaget valt ett eget. En anställd kan dessutom ha ett eget lönekonto (upsert_employee, salary_account). Ändra med set_payroll_accounts. Läser bara, ändrar inget. Kräver behörigheten payroll.

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": "get_payroll_accounts"
  }
}

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. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description's 'Läser bara, ändrar inget' largely restates that. However it adds genuinely new behavioral context beyond annotations: the required payroll permission and the fact that both a standard account and a company-specific override may be returned, plus the per-employee salary account nuance.

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 what is shown, then alternatives, then permission — a sensible order with no filler sentences. The long enumeration of account categories is dense but earns its place since there is no output schema to convey the return shape.

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?

Because no output schema exists, the description carries the burden of describing what comes back, and it does so by enumerating the posted account categories and the standard-vs-custom account distinction. Only the exact response container/field shape is left implicit, which is a minor gap for a read-only lookup.

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?

With a single parameter and 100% schema description coverage, the schema already carries the orgnr format ('10 siffror med eller utan bindestreck') and the retrieval hint ('Hämta med list_companies'). The description adds nothing further about parameters, which is the expected baseline when the schema does the work.

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 vilka konton lönekörningen bokför på') and then enumerates the account categories covered (löner, arbetsgivaravgifter, källskatt, utlägg, nettolöneavdrag, traktamenten, bilersättningar). It explicitly distinguishes itself from the sibling set_payroll_accounts, so an agent can separate read from write without opening either 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 routing: read here, 'Ändra med set_payroll_accounts', plus a pointer to upsert_employee/salary_account for per-employee accounts. It also states the prerequisite ('Kräver behörigheten payroll'), which is exactly the when-can-I-use information an agent needs.

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.