Skip to main content
Glama
Payrolla MCP Server

Payrolla MCP Server

Official
by runpayrolla

calculate_payroll

Calculates payroll for a single employee, including taxes, SSI, and employer cost, with support for gross/net wages, extra payments, and multi-month projections.

Instructions

Calculate payroll for a single employee including taxes, SSI, and employer cost

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

Input Schema

NameRequiredDescriptionDefault
nameYesEmployee name
wageYesWage amount
yearYesCalculation year (e.g., 2025)
monthYesStarting month (1-12)
ssiTypeNoSSI type (default: S4A for general employees)
periodCountNoNumber of months to calculate (default: 1)
customParamsNoCustom global parameters to override defaults
extraPaymentsNoExtra payments like bonuses
calculationTypeYesWhether the wage is gross or net
transferredSSIBase1NoStarting transferred SSI base 1
transferredSSIBase2NoStarting transferred SSI base 2
cumulativeIncomeTaxBaseNoStarting cumulative income tax base to carry from previous months
cumulativeMinWageIncomeTaxBaseNoStarting cumulative minimum wage income tax base

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.7

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it does not say whether the calculation is a pure read-only operation or persists anything, whether it requires authentication, or how custom parameter overrides behave. It mentions employer cost as an output component, which is a small plus, but leaves the agent guessing about side effects and the significance of the cumulative carry-over parameters.

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?

A single front-loaded sentence with zero redundant wording. It is efficient, though its extreme brevity is part of why the more complex behavioral and parameter behaviors go unexplained.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 13-parameter tool with nested customParams and extraPayments objects, month-range continuation behavior, and no output schema or annotations. The description never addresses the multi-month periodCount continuation, the meaning of the cumulative base carry-over inputs, or what the response contains, which is inadequate for a tool of this complexity.

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 every parameter already has its own documentation and the baseline is 3. The description adds no parameter-level meaning; it says nothing about calculationType, customParams overrides, extraPayments, or the transferred/cumulative base fields that carry state between months.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Calculate payroll") plus the output scope (taxes, SSI, employer cost). The phrase "for a single employee" implicitly distinguishes it from the sibling calculate_bulk_payroll, though it never names that sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The single-employee framing hints at when this is appropriate versus calculate_bulk_payroll, but there is no explicit when-to-use or when-not-to-use statement and no mention of compare_scenarios or simulate_budget as alternatives. Usage must be inferred from context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.