Skip to main content
Glama
GLOBAL TAX RATES MCP | AI2Fin

GLOBAL TAX RATES MCP | AI2Fin

Capital gains tax estimate (71 countries)

cgt_estimate
Read-onlyIdempotent

Estimate capital gains tax on a sale of shares or property for a resident individual in 71 countries, returning a figure or the exact rule with a cited tax authority source.

Instructions

Estimate capital gains tax on one sale of shares or property by a resident individual, for 71 countries (AE, AR, AT, AU, BE, BG, BR, CA, CH, CL, CN, CO, CY, CZ, DE, DK, EE, EG, ES, FI, FR, GB, GH, GR, GT, HK, HR, HU, ID, IE, IL, IN, IS, IT, JM, JP, KE, KR, LI, LK, LT, LU, LV, MT, MU, MX, MY, NG, NL, NO, NZ, PH, PK, PL, PT, QA, RO, RS, RU, SA, SE, SG, SI, SK, TR, TW, TZ, UA, UG, US, ZA). Where the country's rule can be computed the answer is a figure; where it depends on facts the engine cannot model, the answer is the rule itself (rate, holding period, annual exemption, main residence) with the reason — never a borrowed number. Any other country returns 'not covered'. Pass income (other taxable income for the year) where the gain is taxed at marginal rates, and heldMoreThan12Months or holdingMonths where the holding period matters (the Australian 50% discount, the US long-term rate). capitalLosses apply before any discount. Finland (FI) adds its own detail: the better of the actual cost or the deemed acquisition cost (hankintameno-olettama: 20% of the price, 40% after 10 years), the 1 000 € small-disposals rule and 30%/34% capital income tax — pass yearsHeld, and otherCapitalIncome if there is any; costBase may be omitted there. Each answer cites the capital-gains source and date for that country — not the GST/VAT one. For pay without an asset sale use income_tax_estimate. Non-resident rules are out of scope. Results may include one sourced background fact (relatedFact); the figures do not depend on it.

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": {
      "proceeds": "<proceeds>"
    },
    "name": "cgt_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNoWhat was sold: 'shares' (shares and funds) or 'property' (real estate). Rules differ by asset in many countriesshares
incomeNoOther taxable income for the year, in local currency — sets the marginal rate where the gain is taxed as income (e.g. AU, US short-term). Required where the rule needs it; the answer says so
countryNo2-letter ISO code of a covered country (upper case); defaults to AUAU
taxYearNoFI: calendar tax year like '2026'; omit for the current year
costBaseNoWhat the asset cost, in local currency, including eligible incidental costs. Required except for FI, where omitting it uses the deemed acquisition cost (pass FI buying and selling costs as saleExpenses)
proceedsYesSale price of the asset, in local currency
yearsHeldNoFI: whole years owned — 10 or more raises the deemed acquisition cost from 20% to 40% of the price
saleExpensesNoFI: brokerage, fees and other costs of buying and selling
capitalLossesNoCapital losses to offset — applied before any discount; FI: from this year or carried forward (five years)
holdingMonthsNoWhole months the asset was held; overrides heldMoreThan12Months
otherCapitalIncomeNoFI: other capital income this year (dividends, rent, other gains) — decides how much of the gain falls above the 30 000 € threshold
heldMoreThan12MonthsNoTrue when the asset was held at least 12 months (e.g. the AU 50% discount, the US long-term rate). Shorthand for holdingMonths: true = 12, false = 0
totalProceedsThisYearNoFI: the year's total sale prices, this sale included, for the 1 000 € small-disposals rule; omit when this is the only sale

Output Schema

NameRequiredDescriptionDefault
lossNoFI: the loss on this sale, if any (only ever from the actual cost)
ruleNoThe country's rule as written, for relaying — especially when status is rule-only
stepNoWhich holding-period step applied, when the rule has steps
notesNoFI: rules that decided the answer, in plain words
methodNoFI: whether the actual cost or the deemed acquisition cost was deducted
reasonNoWhy no figure was computed (rule-only), in plain words
sourceYesThe national tax authority the figures were verified against (e.g. 'ATO — ato.gov.au')
statusYes'computed' = a figure; 'rule-only' = the rule text and the reason no figure is given (cgtPayable and taxableGain are then null)
countryYesCountry estimated (2-letter ISO code)
taxYearYesTax year whose rules were used, when the rule is year-based
currencyNoCurrency of every monetary field
grossGainYesProceeds minus cost (FI: minus the larger of actual or deemed cost). Floored at 0, local currency
sourceUrlNohttps link to the authority page the rate was verified against. Present only on rate answers backed by a verified ledger row — absent (never empty) otherwise, so its presence is itself the claim
cgtPayableYesExtra tax caused by the gain, in local currency; null when rule-only
disclaimerYesGeneral-information note that must accompany any figure shown to a person
lossOffsetYesCapital losses actually applied
mayBeStaleYesTrue once the verification date is over a year old — re-confirm with the authority
assumptionsNoAssumptions the answer depends on — relay them with the figure
relatedFactNoOne sourced background fact about the country's capital gains tax; the figures do not depend on it. Absent when no sourced fact fits.
taxableGainYesGain the tax was charged on; null when rule-only
costDeductedNoFI: the cost deducted from the price
dataVerifiedOnYesISO date the rate data was last confirmed against the authority
lossDeductibleNoFI: whether that loss can be deducted
discountAppliedYesWhether a discount or inclusion rate reduced the taxable gain (e.g. the AU 50% discount). Always false for FI
exemptionAppliedNoAnnual exempt amount or allowance used, where there is one
smallDisposalsExemptNoFI: true when the year's sale prices total 1 000 € or less, making every gain tax-free

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive closed-world), but the description adds substantial behavior the annotations cannot: the answer is a figure only where computable and otherwise returns the rule with reasoning rather than a borrowed number, uncovered countries return 'not covered', every answer cites a country-specific capital-gains source and date (not the GST/VAT one), and one sourced background fact may accompany results without affecting figures.

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?

Purpose, alternatives and exclusions are front-loaded, but the inline list of all 71 ISO codes is redundant with the country enum and consumes roughly half the description. The Finland-specific paragraph is dense but earns its place; the country enumeration does not.

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 13-parameter, closed-world estimation tool with an output schema, the description covers scope, coverage limits, non-covered fallback, sourcing policy, sibling routing and the FI special case well. The one loose end is the 'costBase required except FI' claim that the schema does not enforce, leaving a slight mismatch about what the caller must supply.

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 goes beyond it by giving cross-parameter semantics the per-field descriptions do not, e.g. capitalLosses are applied before any discount, income sets the marginal rate where the gain is taxed as income, and costBase may be omitted for FI in favour of the deemed acquisition cost. Minor gap: it claims costBase is required except FI, which the schema does not enforce (only proceeds is marked required).

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?

States a concrete verb+resource (estimate capital gains tax on one sale of shares or property) plus the actor and scope (resident individual, 71 enumerated countries), and explicitly distinguishes itself from income_tax_estimate. An agent can tell exactly what this computes without opening the schema.

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?

Names the alternative tool and the condition that selects it ('For pay without an asset sale use income_tax_estimate'), states an explicit exclusion ('Non-resident rules are out of scope'), and tells when to supply income, heldMoreThan12Months/holdingMonths and capitalLosses. Routing and prerequisites are fully specified.

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