Skip to main content
Glama
calcbloc-mcp

calcbloc-mcp

Split equity income between countries (mobile employees)

calculate_cross_border_equity
Read-onlyIdempotent

Splits an RSU vest or stock option exercise across countries by workdays or local sourcing rules, then estimates each country's tax and withholding and flags double-taxed income.

Instructions

For an employee who worked in several countries between grant and vest: splits an RSU vest or stock option exercise between those countries by workdays (OECD Commentary on Article 15) or the country's own official rule (US Treas. Reg. § 1.861-4, HMRC relevant period, Ireland, Singapore, Canada), then estimates each country's tax and withholding on its share. Tax estimates for: sg, nl, es, de, us, uk, au, ca, ie, in; the split works for every country. Flags where two countries tax the same income (relief by credit or exemption under the treaty); treaty rates and the relief amount are not computed. Canada needs options {"ca":{"region":"on"}}. Every result is an estimate. Returns the rule used per country, official source URLs and the calcbloc.com page. Not yet supported: cross-border salary withholding (multi-country payroll), and the double-tax relief amount (get_tax_treaties lists the treaty withholding limits CalcBloc stores).

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": {
      "instrument": "<instrument>",
      "units": "<units>",
      "grant_date": "<grant_date>",
      "event_date": "<event_date>",
      "fmv_event": "<fmv_event>",
      "periods": "<periods>"
    },
    "name": "calculate_cross_border_equity"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsYesShares vesting or options exercised.
optionsNoPer-country options of that country's equity or supplemental module, e.g. {"us":{"filing_status":"mfj","region":"ny"},"ca":{"region":"on"},"de":{"tax_class":3}}; also region and instrument. list_countries with the country shows its options.
periodsYesWhere the employee worked between grant and vest, e.g. [{country:"us",start:"2024-01-01",end:"2024-12-31",workdays:220},{country:"uk",start:"2025-01-01",end:"2025-06-30",workdays:120}].
currencyNoCurrency of fmv_event and exercise_price (USD, EUR, GBP, AUD, NZD, CAD, INR or SGD). Default USD. Each country's share is converted at the ECB reference rate.
salariesNoRegular annual salary per country in that country's currency, e.g. {"us":150000,"uk":80000} (marginal rates and contribution ceilings; a missing country is estimated as if there were no other income there).
fmv_eventYesMarket value per share at the event, in `currency`.
residenceNoTax residence at the event. Default: the country of the period that contains event_date.
vest_dateNoVest date (YYYY-MM-DD), the end of the sourcing period, for options exercised after vesting. Default: event_date.
event_dateYesVest date (RSUs) or exercise date (options) (YYYY-MM-DD): the taxing event.
grant_dateYesGrant date (YYYY-MM-DD): start of the sourcing period.
instrumentYesrsu (RSUs and share awards, taxed at vest) or stock_option (taxed at exercise). Each country maps it to its own instrument; override with options {"us":{"instrument":"iso"}}.
us_citizenNoUS citizen: the US taxes worldwide income whatever the residence. Default false.
grant_countryNoCountry where the employee worked at grant (Singapore's rule). Default: from the periods.
exercise_priceNoExercise price per share, in `currency` (required for stock_option; RSUs: any amount paid, default 0).

Output Schema

NameRequiredDescriptionDefault
fxYes
flagsYes
labelYes
notesYes
unitsYes
inputsYes
reliefYesWhere two countries tax the same income; the relief itself is not computed.
licenceYes
periodsYes
sourcesYesOfficial sources for the rates used.
currencyYesCurrency of fmv_event, exercise_price and totalIncome.
estimateYesAlways true: every cross-border result is an estimate.
warningsYes
countriesYes
eventDateYes
residenceYes
disclaimerYes
instrumentYes
attributionYesAlways "Data by CalcBloc"; show it with the figures.
calcblocUrlYesThe calcbloc.com page for this result.
totalIncomeYesIncome at the event (vest value, or the option spread).
underReviewYes
grantCountryYes
totalWorkdaysYes
attributionUrlYes
sourcingPeriodYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this is a read-only, idempotent, open-world, non-destructive calculation, so safety is covered. The description adds genuine behavioral context beyond them: every result is an estimate, double-tax relief and treaty rates are deliberately not computed, overlaps are flagged rather than resolved, and each result carries the rule used plus official source URLs. Return-value detail is partly redundant with the output schema, which keeps it from a 5.

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 scenario and the verb are front-loaded, and the exclusion list sits at the end where it belongs. The middle is dense with statutory citations (OECD Art. 15, Treas. Reg. § 1.861-4, HMRC relevant period) that are informative for a tax tool but make the definition heavy for a single paragraph.

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 tool with nested objects and a populated output schema, the definition covers the important gaps: the estimation caveat, the countries with tax estimates versus the universal split, and the unsupported cases. Coverage of what the flagged double-tax situation actually returns is thin, but the output schema carries return structure.

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 coverage is 100% and the schema itself documents the nested periods and options structures in depth, so the baseline is 3. The description adds only a little beyond it — that Canada requires an options object with a region, and which country codes get tax estimates — but does not explain residence, salaries, or currency conversion behavior, which the schema already handles.

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 opening clause states the specific scenario (employee worked in several countries between grant and vest) and the concrete operation: splitting an RSU vest or option exercise across countries by workdays, then estimating per-country tax and withholding. This clearly separates it from a single-country calculator and from the treaty/list siblings it names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the condition that selects this tool (multi-country work history), names the rule sources that drive the split, and explicitly names an alternative for the part it does not do ('get_tax_treaties lists the treaty withholding limits'). The 'Not yet supported' list gives real when-not-to-use guidance for cross-border payroll and relief amounts.

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