Skip to main content
Glama

Calculate Capital Gains Tax

calculate_capital_gains_tax
Read-only

Calculate UK Capital Gains Tax on selling an asset (residential property, shares, a business qualifying for Business Asset Disposal Relief, or other assets) for a tax year: the gain after costs, losses and the annual exempt amount, tax at each rate given other income, and the payment deadline.

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": {
      "assetType": "<assetType>",
      "proceeds": "<proceeds>",
      "costBasis": "<costBasis>"
    },
    "name": "calculate_capital_gains_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
lossesNoCapital losses to offset
taxYearNoUK tax year, e.g. "2026-27". Defaults to the current one.
proceedsYesSale proceeds
assetTypeYesbadr: Business Asset Disposal Relief
costBasisYesWhat the asset cost
otherIncomeNoTaxable income in the year, which sets the rate
disposalDateNoDisposal date; only matters in 2024-25, when rates changed on 30 October 2024
allowableCostsNoCosts of buying, improving and selling

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / disposalDate
      Added value: +{
      +  "description": "Disposal date; only matters in 2024-25, when rates changed on 30 October 2024",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, destructiveHint false, openWorldHint false). The description adds meaningful behavioral detail beyond that, explaining the calculation flow (gain after costs, losses, annual exempt amount) and outputs (tax at each rate, payment deadline).

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

Conciseness5/5

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

The description is a single front-loaded sentence that packs the tool's purpose, scope, and output components without any filler. Every clause contributes useful information for invoking the tool.

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?

With no output schema, the description carries the burden of explaining return values, and it does so by summarizing the computed gain, tax at each rate, and payment deadline. It omits finer details like exact rate bands or BADR specifics, but the schema and assetType enum cover the necessary inputs.

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 adds integrative meaning by connecting parameters in a calculation sequence (costs, losses, annual exempt amount, other income setting the rate) and by enumerating asset types, going slightly beyond the individual schema descriptions.

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 states a specific verb (Calculate) and resource (UK Capital Gains Tax on selling an asset) with a clear scope covering asset types and tax years. It distinguishes itself from sibling tax calculators by naming the exact tax and disposal scenario.

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 a clear context for use: calculating CGT when selling an asset for a given tax year. It does not explicitly name when not to use it or point to alternative sibling tools, but the resource is specific enough to imply correct usage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.