Skip to main content
Glama

Välj lönekonton

set_payroll_accounts
DestructiveIdempotent

Väljer egna konton för lönekörningen, t.ex. {"utlagg": 2820} för utlägg mot Kortfristiga skulder till anställda, eller {"salary": 7210}. Nycklar: salary, employer_fee_expense, employer_fee_liability, withheld_tax, utlagg, net_deduction, traktamente, milersattning, traktamente_taxable, milersattning_taxable (det som överstiger schablonen, standard 7322 och 7332); null ger standardkontot igen. Gäller körningar som bokförs härefter, redan bokförda verifikat ändras inte. Ett konto som inte finns i kontoplanen läggs upp med BAS-namnet vid första lönekörningen. Returnerar kontona som get_payroll_accounts. 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>",
      "accounts": "<accounts>"
    },
    "name": "set_payroll_accounts"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that changes are forward-looking only, that missing accounts are auto-created under the BAS name at the first payroll run, that null resets to the default account, and that the return value mirrors get_payroll_accounts. The permission requirement and auto-creation side effect are exactly the kind of context an agent needs before mutating shared settings.

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-loads the purpose and examples, then the key list and behavior notes; every sentence adds information. It is a dense single paragraph, however, and the long inline key list would be easier to scan if broken out, so it is efficient but not optimally structured.

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 two-parameter mutation tool with no output schema, the definition covers side effects, scope of effect, reset semantics, return shape by analogy, and auth requirements. The only gap is the absence of key-level value typing/validation detail for a free-form object, a minor omission given the otherwise thorough coverage.

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 50% and 'accounts' is a free-form nested object with no property descriptions, so the description carries the burden – and it largely does, enumerating all ten valid keys with semantics (including that traktamente_taxable/milersattning_taxable are the amounts above the standard 7322/7332, and that null restores defaults). It does not state value types (account numbers as integers/strings) or whether unknown keys are rejected, which keeps it from a 5.

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?

Names a concrete verb and resource – choosing the company's own payroll accounts – and immediately illustrates it with two key/value examples ({"utlagg": 2820}, {"salary": 7210}). This is clearly distinguishable from the sibling getter get_payroll_accounts, which it explicitly references.

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?

Explains the operative context (applies to payroll runs booked from now on, already-booked vouchers are untouched) and states the required 'payroll' permission, which tells an agent when the call will succeed. It does not spell out explicit when-not-to-use conditions or compare against calc_payroll/run_payroll ordering, but the scope sentence covers most routing 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.