Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Lönekontroll

check_payroll
Read-onlyIdempotent

Payroll check: employer contributions and withheld tax against booked salaries month by month, and whether the tax and contribution liabilities have been paid. Use when the person asks whether employer contributions and payroll tax are right and paid. Example question: "Stämmer arbetsgivaravgifterna mot lönerna? Är personalskatten betald?" Read-only; computed on the server from live Fortnox data over all pages (Fortnox API, https://api.fortnox.se/apidocs).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_payroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNosista månad ÅÅÅÅ-MM, standard förra månaden Month, YYYY-MM.
dateNoÅÅÅÅ-MM-DD för att välja räkenskapsår Date as YYYY-MM-DD unless the text allows more.
fromNoförsta månad ÅÅÅÅ-MM, standard räkenskapsårets första Month, YYYY-MM.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"ÅÅÅÅ-MM-DD för att välja räkenskapsår"New value: +"ÅÅÅÅ-MM-DD för att välja räkenskapsår Date as YYYY-MM-DD unless the text allows more."
    • changedInput schema / properties / from / description
      Previous value: -"första månad ÅÅÅÅ-MM, standard räkenskapsårets första"New value: +"första månad ÅÅÅÅ-MM, standard räkenskapsårets första Month, YYYY-MM."
    • changedInput schema / properties / to / description
      Previous value: -"sista månad ÅÅÅÅ-MM, standard förra månaden"New value: +"sista månad ÅÅÅÅ-MM, standard förra månaden Month, YYYY-MM."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive behavior, so the description's added value here is the operational note that results are computed server-side from live Fortnox data across all pages, meaning the agent need not paginate or aggregate itself. It does not discuss what happens when no payroll data exists for a period, so it is not fully complete.

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?

The purpose is front-loaded in the first clause, followed by usage, an example, and a brief behavioral note, with no filler sentences. The opening "Payroll check:" partially restates the title Lönekontroll, a minor redundancy, but overall the structure is tight and scannable.

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?

An output schema exists, so return structure need not be described, and all three optional period parameters are documented in the schema. Combined with the disclosed comparison logic and live-data computation, an agent has what it needs, with only edge-case behavior (empty periods, partial-year data) left implicit.

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 description coverage is 100% and each parameter already carries its format and default (from defaults to the fiscal year's first month, to to last month). The description adds no period-selection semantics or interaction rules beyond the schema, 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?

The description names a specific verb and resource: it compares employer contributions and withheld tax against booked salaries month by month and verifies whether the resulting liabilities were paid. That is a concrete analytical operation, clearly distinct from siblings like check_vat or check_accruals, which concern other account areas.

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?

It states the triggering question explicitly ("whether employer contributions and payroll tax are right and paid") and reinforces it with a Swedish example question. It stops short of naming a when-not condition or a specific alternative tool to use for adjacent questions, which keeps it below a 5.

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.

Resources