Skip to main content
Glama
dk-tax
by mikaelbdj

estimate_salary_tax

Calculate a single employee's Danish annual income tax, take-home pay, effective and marginal tax rates, with a source-verified breakdown of every figure used.

Instructions

Estimate a single (unmarried) employee's Danish income tax for one year, with the full breakdown.

Use this instead of doing tax arithmetic yourself. All amounts are yearly DKK, not percent.
gross_salary: total salary INCLUDING the employee's own pension share and EXCLUDING the
  employer's share; bonus and RSU vests count as salary. If the user gives pension as
  percentages of salary, convert them to kroner first.
pension_own / pension_employer: contributions to an employer-administered pension.
private_ratepension: what the person pays into a ratepension themselves.
atp_full_time: use the statutory full-time ATP amounts; set False and pass atp_own /
  atp_employer for part-time or other ATP.
other_deductions: other ligningsmæssige fradrag (befordring, union dues, ...).
The result includes til_udbetaling (take-home), effektiv_skatteprocent and marginalskat
(share of the next 1.000 kr. that goes to tax), and the source, verified date and status
of every figure used: cite them with the income year, and flag any figure that is not
'verified' (all_verified tells you at a glance). Not covered: married couples,
aktieindkomst, ejendomsværdiskat. Not tax advice.

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>",
      "gross_salary": "<gross_salary>",
      "kommune": "<kommune>",
      "folkekirke_member": "<folkekirke_member>"
    },
    "name": "estimate_salary_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYes
atp_ownNo
kommuneYes
pension_ownNo
atp_employerNo
gross_salaryYes
atp_full_timeNo
other_deductionsNo
pension_employerNo
folkekirke_memberYes
net_capital_incomeNo
private_ratepensionNo
other_personal_incomeNo
within_15_years_of_pensionNo

Output Schema

NameRequiredDescriptionDefault
taxYes
kommuneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the key output fields (til_udbetaling, effektiv_skatteprocent, marginalskat), the provenance behavior (source, verified date, status per figure, all_verified), and a 'Not tax advice' caveat. It does not state whether the tool is a pure computation with no side effects, nor any rate-limit or auth expectations.

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?

Purpose is front-loaded in a single opening sentence, and the per-parameter bullets are terse and scannable rather than prose-heavy. The length is justified by 14 parameters, though the final sentence partially restates output fields that an output schema already covers.

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 14-parameter, annotation-free estimation tool this is close to complete: input conventions, unit conventions, output highlights, provenance semantics and known limitations are all present. The remaining gap is that required kommune and several optional income/adjustment parameters are undefined, which for a domain-specific tax tool could lead to malformed calls.

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 description coverage is 0%, so the description must compensate and it largely does: gross_salary gets a precise inclusion/exclusion rule (own pension share included, employer share excluded, bonus and RSU vests count), and pension_own, pension_employer, private_ratepension, atp_full_time, atp_own, atp_employer and other_deductions are all given meaning the bare titles lack. Three non-obvious parameters — net_capital_income, other_personal_income and within_15_years_of_pension — receive no explanation at all, and kommune is left undefined despite a get_kommune sibling.

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: 'Estimate a single (unmarried) employee's Danish income tax for one year, with the full breakdown.' Scope and the single/unmarried restriction are explicit, and the closing 'Not covered' line further bounds it. It does not name the obvious sibling (estimate_payslip) or explain how the two differ, so it stops short of full sibling differentiation.

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?

'Use this instead of doing tax arithmetic yourself' plus 'All amounts are yearly DKK, not percent' and the percentage-to-kroner conversion instruction give clear operational context and prevent predictable input errors. Exclusions (married couples, aktieindkomst, ejendomsværdiskat) act as when-not guidance. What is missing is routing guidance toward get_kommune for the required kommune value or toward estimate_payslip.

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