Skip to main content
Glama
calcbloc-mcp

calcbloc-mcp

Calculate take-home pay

calculate_take_home_pay
Read-onlyIdempotent

Calculate net take-home pay from a gross salary after income tax and employee social security, with a line-by-line breakdown using official rates for 12 countries.

Instructions

Net (take-home) pay after income tax and employee social security for a gross salary, with a line-by-line breakdown, using official rates for the current tax year. Countries: sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in (41 countries with official tax tables; 12 with take-home pay calculations; 11 with employer cost; 12 in the cross-country comparison (France: take-home pay and compare only, no employer cost yet).) region is REQUIRED for: us, ca; optional for: es, de, uk, in; a missing or unknown region returns the valid codes. Returns the tax year, official source URLs and the calcbloc.com page. Not yet supported: equity compensation (RSUs, stock options), bonus and supplemental withholding, and cross-border (multi-country) withholding.

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": {
      "country": "<country>",
      "gross_salary": "<gross_salary>"
    },
    "name": "calculate_take_home_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoTax year, e.g. "2026" or "2026-27". Default: the current year. Calculations use the current year only.
regionNoRegion code or name. Required for: us, ca. Examples: US "ca" or "California", UK "scotland", Canada "on", Spain "md", Germany "by". list_countries with the country lists every code.
countryYesCountry short code (ISO 3166-1 alpha-2 in lower case; the UK is "uk", "gb" also works), e.g. "us", "uk", "ca", "de", "in", "au", "nz", or the English name. Older keys such as "new-zealand" also work. See list_countries.
optionsNoCountry-specific options. Examples: US {"filing_status":"mfj","children":2} (filing_status: single | mfj | hoh; "married" and "head_of_household" are accepted too), UK {"pension_pct":5,"student_loan":"plan2"} (student_loan: none | plan1 | plan2 | plan4 | plan5), Germany {"tax_class":3,"church":true}. Call list_countries with the country to see every option, its allowed values and its default.
gross_salaryYesGross salary before tax in the country's currency. Annual for every country except Singapore (monthly); India: annual CTC/gross as described by list_countries.

Output Schema

NameRequiredDescriptionDefault
notesYes
inputsYes
regionYes
countryYes
licenceYes
resultsYes
sourcesYesOfficial sources for the rates used.
taxYearYes
currencyYes
warningsYes
breakdownYes
netAnnualYes
disclaimerYes
attributionYesAlways "Data by CalcBloc"; show it with the figures.
calcblocUrlYesThe calcbloc.com page for this result.
countryNameYes
grossSalaryYes
taxTablesUrlYes
effectiveRateYesShare of gross pay deducted, 0 to 1.
salaryMeaningYes
attributionUrlYes
totalDeductionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / country / description
      Previous value: -"Country code or name, e.g. \"us\", \"uk\", \"canada\", \"germany\", \"india\", \"australia\". See list_countries."New value: +"Country short code (ISO 3166-1 alpha-2 in lower case; the UK is \"uk\", \"gb\" also works), e.g. \"us\", \"uk\", \"ca\", \"de\", \"in\", \"au\", \"nz\", or the English name. Older keys such as \"new-zealand\" also work. See list_countries."
    • changedInput schema / properties / options / description
      Previous value: -"Country-specific options, e.g. US {\"filing_status\":\"married\",\"children\":2}, UK {\"pension_pct\":5,\"student_loan\":\"plan2\"}, Germany {\"tax_class\":3,\"church\":true}. Call list_countries with the country to see every option."New value: +"Country-specific options. Examples: US {\"filing_status\":\"mfj\",\"children\":2} (filing_status: single | mfj | hoh; \"married\" and \"head_of_household\" are accepted too), UK {\"pension_pct\":5,\"student_loan\":\"plan2\"} (student_loan: none | plan1 | plan2 | plan4 | plan5), Germany {\"tax_class\":3,\"church\":true}. Call list_countries with the country to see every option, its allowed values and its default."
    • changedInput schema / properties / region / description
      Previous value: -"Region code or name where the calculation varies by region, e.g. US \"ca\", UK \"scotland\", Canada \"on\", Spain \"md\", Germany \"by\"."New value: +"Region code or name. Required for: us, ca. Examples: US \"ca\" or \"California\", UK \"scotland\", Canada \"on\", Spain \"md\", Germany \"by\". list_countries with the country lists every code."
  2. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive and open-world behavior, so the description's job is to add context, which it does: unknown region returns valid codes rather than failing, results include tax year, official source URLs and a calcbloc.com page, and several calculation types are explicitly out of scope. It stops short of describing rounding, currency handling or pagination/limits, but the added context is meaningful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded in the first clause, but the middle section collapses into nested parentheses and ambiguous counts (41 countries, 12 with take-home pay, 11 with employer cost, 12 in the comparison), some of which describe sibling tools rather than this one. The France parenthetical in particular is hard to parse and could be trimmed without losing information an agent needs.

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?

The tool is moderately complex (5 params, a nested options object, multi-country behavior) but has an output schema, so return values need not be explained in depth, and the description still covers the key edges: region requiredness, the unsupported-feature list, and the fallback for unknown regions. What remains thin is country coverage clarity—the description's own country counts are confusing—but the pointer to list_countries covers it.

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 every parameter, including the nested options object, is already documented with examples, so the baseline is 3. The description adds only coverage-level information (which countries actually have take-home pay calculations) rather than new meaning for individual parameters, and its country enumeration partly duplicates what the schema and list_countries already supply.

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 and resource: net (take-home) pay after income tax and employee social security for a gross salary, plus a line-by-line breakdown using official rates for the current tax year. That is enough for an agent to tell it apart from calculate_employer_cost and compare_countries without opening a 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 concrete conditional guidance: region is required for us and ca, optional for es, de, uk, in, and a missing or unknown region returns the valid codes. It also lists what is not yet supported (equity comp, bonus withholding, cross-border), which functions as a when-not-to-use signal, but it never explicitly names a sibling to use instead.

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