Skip to main content
Glama

Gross-to-Net Salary Calculator (Germany & UK)

Gross to net: net pay, deductions and employer cost

calculate_net_salary
Read-onlyIdempotent

Computes net pay from gross pay for one pay period with the country's official payroll algorithm. Returns every employee deduction and employer contribution as a line with the rule applied and its source, the employer's total cost, annualised figures and the assumptions made.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deNoGerman profile (used when country is DE)
ukNoUK profile (used when country is UK)
yearNoTax year. UK: the year the tax year starts in (2026 = 2026-27)
grossYesGross pay for the period, in EUR (DE) or GBP (UK)
periodNoPay period of the amount: year, month, week, day (DE only), fortnight or four_weeks (UK only)month
countryYesDE or UK (GB is accepted as UK)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
netYesNet pay: gross minus all employee deductions
yearYesTax year (UK: year the tax year starts)
grossYesGross pay for the period
linesYesEvery deduction and contribution with rule and source
notesYesAssumptions and what is not included
annualYesThe period's figures scaled to a year (periods per year × amount)
periodYesPay period of all amounts
countryYesDE or UK
profileYesThe profile as applied, including defaults that were filled in
sourcesYesOfficial publications used
currencyYesEUR or GBP
tax_yearYesTax year label, e.g. 2026 or 2026-27
disclaimerYes
employer_costYesGross plus employer contributions
deduction_rateYesEmployee deductions in % of gross
employee_deductionsYesSum of the employee lines
employer_contributionsYesSum of the employer lines

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description adds that output is line-by-line with the applied rule and its source, plus employer cost, annualisation and stated assumptions – useful behavioral context, but it overlaps heavily with the existing output schema and says nothing about failure modes or input validation.

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?

Two sentences, front-loaded with the core operation, no filler. The second sentence is a long list of returned artefacts but each item is informative rather than decorative.

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 stateless, deterministic calculator with full schema coverage, rich annotations and an output schema, the definition is close to sufficient. Coverage gaps are minor: no mention that results are periodised/annualised inputs are mutually dependent, and no guidance on the DE/UK profile requirement linkage to country.

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 (country, gross, period, year, de/uk profiles) is already documented in the schema. The description only echoes 'gross pay', 'one pay period' and the country-specific algorithm, adding no syntax or constraint detail beyond structured data. Baseline 3 applies.

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?

States a specific verb and resource with direction and scope: 'Computes net pay from gross pay for one pay period with the country's official payroll algorithm.' That cleanly separates it from the inverse sibling calculate_gross_salary in substance, though the description never names an alternative 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 gross-to-net direction and 'one pay period' scope imply the intended situation, but there is no explicit when-to-use, when-not-to-use, or routing to calculate_gross_salary / compare_net_salaries. Usage is inferable rather than stated.

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