Skip to main content
Glama
calcbloc-mcp

calcbloc-mcp

Calculate tax on RSUs and stock options

calculate_equity_tax
Read-onlyIdempotent

Calculate income tax, social security, employer withholding, and capital gains on equity compensation (RSUs, options) at vesting, exercise, and sale for multiple countries.

Instructions

Tax on equity compensation: income tax, social security and employer withholding when RSUs vest or stock options are exercised, and capital gains tax on a later sale (give sale_price and sale_date), with flags (such as AMT exposure) and the alternative outcomes the law allows (such as qualifying vs disqualifying disposition). Countries and instruments: us (rsu, nso, iso), uk (rsu, emi, csop, unapproved_option), au (ess_upfront, ess_deferred, rsu), ca (stock_option), in (esop, rsu). Required: country, instrument, units, grant_date, event_date, fmv_event, gross_salary; options also need exercise_price. region is REQUIRED for: ca; optional for: us, uk. Other countries return the list of supported ones. Returns the tax year, 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>",
      "instrument": "<instrument>",
      "units": "<units>",
      "grant_date": "<grant_date>",
      "event_date": "<event_date>",
      "fmv_event": "<fmv_event>",
      "gross_salary": "<gross_salary>"
    },
    "name": "calculate_equity_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsYesNumber of shares vesting or options exercised.
regionNoRegion code or name. Required for: ca; optional for: us, uk. Examples: Canada "on" or "Ontario", US "ca" (state withholding; omit for federal only), UK "scotland".
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"}, UK {"readily_convertible":false,"emi_exercise_period_years":"10"}, Canada {"employer_type":"ccpc"}, India {"regime":"old","listed":true}. Call list_countries with the country to see every option, its allowed values and its default.
fmv_eventYesMarket value per share at vest or exercise, in the country's currency (India: FMV under rule 15(6)).
fmv_grantNoMarket value per share at grant (UK EMI discount and CSOP limit, Canada 110(1)(d) and the vesting limit).
sale_dateNoSale date (YYYY-MM-DD), with sale_price.
event_dateYesVest date (RSUs), exercise date (options), or the acquisition or deferred taxing point (Australia ESS) (YYYY-MM-DD).
grant_dateYesGrant date (YYYY-MM-DD).
instrumentYesEquity instrument; each country has its own: us (rsu, nso, iso), uk (rsu, emi, csop, unapproved_option), au (ess_upfront, ess_deferred, rsu), ca (stock_option), in (esop, rsu).
sale_priceNoSale price per share; with sale_date it adds the tax on the sale.
gross_salaryYesRegular annual gross salary in the country's currency (for the marginal rates and contribution ceilings).
exercise_priceNoExercise price per share (required for options; RSUs: any amount paid, default 0).

Output Schema

NameRequiredDescriptionDefault
flagsYesE.g. "AMT exposure", "Scheme conditions assumed met".
linesYes
notesYes
unitsYes
inputsYes
regionYes
countryYes
licenceYes
sourcesYesOfficial sources for the rates used.
taxYearYes
currencyYes
warningsYes
scenariosYes
disclaimerYes
instrumentYes
attributionYesAlways "Data by CalcBloc"; show it with the figures.
calcblocUrlYesThe calcbloc.com page for this result.
countryNameYes
taxTablesUrlYes
attributionUrlYes
instrumentNameYes
taxableAtEventYesTaxable amount at vest / exercise, as the country defines it.
totalTaxAtSaleYesNull when no sale was given or it cannot be computed.
totalTaxAtEventYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely useful behavior: unsupported countries fall back to a supported-list response, cross-border withholding is unimplemented, and results carry the tax year and official source URLs. It doesn't discuss validation failures (e.g. instrument/country mismatches) or performance, so it stops short of full disclosure.

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?

It is front-loaded with the core purpose and then walks through countries, required fields, and limitations in a logical order with no filler sentences. Minor waste: the country/instrument mapping and the required-field list largely duplicate the schema, and the long parenthetical clauses make it read as a run-on block.

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 13-parameter, nested-object tool with conditional requirements, the description covers supported country/instrument matrices, required inputs, optional capital-gains path, fallback behavior for unsupported countries, and known limitations, while the output schema handles return values. An agent has everything needed to decide whether and how to call it.

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 baseline is 3, but the description earns more by consolidating the conditional requirements across 13 parameters into a scannable summary: the seven required fields, options needing exercise_price, region being mandatory for ca and optional for us/uk. It maps instruments to countries in one line, which is faster than reading the enum description, though it repeats material already in the schema.

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-plus-resource ('Tax on equity compensation: income tax, social security and employer withholding when RSUs vest or stock options are exercised, and capital gains tax on a later sale'), which is far more precise than the title alone. It clearly occupies the equity-compensation niche, which is distinguishable from withholding and take-home-pay siblings without opening any 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 states concrete triggering conditions: give sale_price and sale_date to get the capital-gains leg, exercise_price is needed for options, and region is required only for Canada. It also sets explicit boundaries ('Other countries return the list of supported ones', 'Not yet supported: cross-border (multi-country) withholding'), but it never routes the agent to the sibling tools (e.g. calculate_supplemental_withholding) that might cover the unsupported case.

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