Skip to main content
Glama
calcbloc-mcp

calcbloc-mcp

Calculate withholding on a bonus or other supplemental pay

calculate_supplemental_withholding
Read-onlyIdempotent

Calculates tax withheld on bonuses, commissions, RSUs, options, or lump sums, comparing official withholding with actual added tax to reveal over- or under-withholding.

Instructions

Tax withheld on a supplemental payment (bonus, commission, RSU vest, stock option exercise or lump sum) paid on top of a regular salary, using the country's official withholding method (for example the IRS supplemental flat rate, HMRC cumulative PAYE, the CRA bonus method), line by line, next to the final tax the payment adds at the person's real rates, so over- or under-withholding shows. Countries: sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in. Types are limited for au (bonus, commission, lump_sum), ie (bonus, commission, rsu_vest, lump_sum); other countries take every type. region is REQUIRED for: us, ca; optional for: es, de, uk; a missing or unknown region returns the valid codes. Other countries return the list of supported ones. Returns the tax year, the method, official source URLs and the calcbloc.com page. Not yet supported: 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>",
      "amount": "<amount>"
    },
    "name": "calculate_supplemental_withholding"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoKind of payment. Default: bonus. Types are limited for au (bonus, commission, lump_sum), ie (bonus, commission, rsu_vest, lump_sum); other countries take every type.
amountYesThe supplemental payment (gross), in the country's currency.
regionNoRegion code or name. Required for: us, ca; optional for: es, de, uk. Examples: US "ca" or "California", Canada "on", UK "scotland". 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","method":"aggregate","ytd_supplemental":900000} (filing_status: single | mfj | hoh; method: flat | aggregate), UK {"tax_code_number":1257,"month_paid":12}, Germany {"tax_class":3,"church":true}. Call list_countries with the country to see every option, its allowed values and its default.
gross_salaryYesRegular gross salary for the year, before the supplemental payment, in the country's currency (annual in every country).

Output Schema

NameRequiredDescriptionDefault
typeYesPayment type: bonus, commission, rsu_vest, option_exercise or lump_sum.
linesYes
notesYes
amountYesThe supplemental payment, gross.
inputsYes
methodYesThe official withholding method used.
regionYes
countryYes
licenceYes
sourcesYesOfficial sources for the rates used.
taxYearYes
currencyYes
warningsYes
differenceYestotalLiability − totalWithheld: positive = more due at filing, negative = refund; null when unknown.
disclaimerYes
netPaymentYesThe payment after withholding.
attributionYesAlways "Data by CalcBloc"; show it with the figures.
calcblocUrlYesThe calcbloc.com page for this result.
countryNameYes
grossSalaryYesRegular gross salary for the year, before the payment.
taxTablesUrlYes
totalWithheldYes
attributionUrlYes
totalLiabilityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this as a safe, idempotent, open-world read, so the description doesn't need to argue safety. It goes further by disclosing error behavior (a missing or unknown region returns the valid codes; an unsupported country returns the supported list) and by stating exactly what the response contains — tax year, method, official source URLs, and the calcbloc.com page.

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 first clause front-loads what the tool does, and every subsequent sentence carries a constraint that isn't filler. The density of parenthetical asides and semicolon-separated country lists makes it harder to scan than it needs to be, but little is wasted.

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?

For a six-parameter tool with a nested options object and an output schema, the description covers the pieces an agent needs before calling: valid countries, type restrictions, region requirements, and unsupported cases. Return values are summarized rather than over-explained, consistent with an output schema being present.

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 coverage is 100%, so the baseline is 3; the description earns an extra point by enumerating the supported country set (sg, fr, nl, es, de, us, uk, au, nz, ca, ie, in) and restating the per-country type restrictions and region-required set, which the schema defers to list_countries. It adds no detail on the nested options object beyond what the schema already documents.

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 names a specific verb and resource — tax withheld on a supplemental payment — and immediately bounds the input domain to bonus, commission, RSU vest, option exercise, and lump sum paid on top of regular salary. It also distinguishes the output's dual nature (official method line-by-line vs. the actual marginal tax added), which separates it from a plain take-home or employer-cost calculator.

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?

Scope is stated with explicit exclusions ("Not yet supported: cross-border (multi-country) withholding") and country/type eligibility rules that tell an agent when the tool will fail. However, it never names sibling alternatives such as calculate_equity_tax or calculate_take_home_pay, so an agent deciding between overlapping equity tools gets no routing guidance.

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