Skip to main content
Glama

Palgaülevaade

get_payroll_overview
Read-onlyIdempotent

PALGAARVESTUSE ÜLEVAADE ühe kuu kohta (valikuliselt ühe töötaja kohta): palga seadistus (palgakulu kuu, maksuparameetrid), töötajate maksuseaded (maksuvaba tulu, kogumispension, sotsiaalmaksu miinimum, vähenenud töövõime soodustus, palgaperioodid ehk lepingujärgne bruto), palgalehe read (staatus, väljamaksed koos bruto/neto/seotud pangamaksega, oodatav väljamakse, pangast leitud sidumata maksed, kuu märge, palgavõlg), kuu koondsummad, TSD kohustus/tähtaeg/esitatud ja lisa 1 read ning SIGNAALID (olukorrad, mis vajavad tähelepanu). Kasuta ALATI enne palga, väljamaksete, palgavõla, sotsiaalmaksu miinimumi või TSD-teemalist nõu. Hilinenud palga / palgavõla korral päri ka naaberkuud.

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": {
      "year": "<year>",
      "month": "<month>"
    },
    "name": "get_payroll_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesAasta, nt 2026
monthYesKuu 1–12 (väljamakse / TSD kuu)
personIdNoValikuline töötaja id (kontekstireast või varasemast vastusest); ilma selleta kõik töötajad.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: it is a cross-cutting aggregate that pulls payroll config, bank-matched payments, TSD status and 'SIGNAALID' attention flags into one read, and it warns that late-payment cases require checking adjacent months. It does not discuss volume, performance, or what happens when no payroll data exists for the month.

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 and every subsequent phrase names a returned data block, which is useful given there is no output schema. The single dense run-on sentence with heavy parenthetical nesting is harder to scan than a short bulleted list would be, but there is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 must carry the return-value burden, and it does so thoroughly by enumerating each section and the attention signals. Combined with the explicit usage trigger and the neighboring-month caveat, an agent has everything needed to call it correctly and interpret the result.

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%, so year, month and personId are already documented, including that month is the payment/TSD month. The description reinforces the optional single-employee scoping and the month semantics but adds no new syntax or format detail. Baseline 3 applies when the schema carries the parameter burden.

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 opens with a specific verb+resource+scope ('PALGAARVESTUSE ÜLEVAADE ühe kuu kohta, valikuliselt ühe töötaja kohta') and then enumerates the concrete data blocks returned (payroll setup, employee tax settings, payroll rows, monthly totals, TSD, signals). An agent can distinguish this aggregate overview from narrower siblings like get_tsd_report or calc_salary without opening the schema.

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 gives an explicit trigger: 'Kasuta ALATI enne palga, väljamaksete, palgavõla, sotsiaalmaksu miinimumi või TSD-teemalist nõu', plus a follow-up rule to also query neighboring months when salary is late or in debt. That is strong when-to-use guidance, but it never names or excludes the closely related siblings (get_tsd_report, calc_salary), so the routing is implied rather than fully resolved.

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