Skip to main content
Glama

Calculate pension tax relief

calculate_pension_tax_relief
Read-only

Work out the income tax relief on UK pension contributions in a tax year, for someone self-employed, employed or both, in Scotland or the rest of the UK: the 20% a personal pension or SIPP adds at source, the higher or additional rate relief still to claim and how, or the relief a workplace net pay scheme gives through payroll, and the net cost. Relief stops at the higher of £3,600 and the year's earnings, and the annual allowance is checked. Earlier tax years still open for a claim can be priced, with the deadline and route for claiming missed relief. Amounts are gross (what reaches the pension) unless contributionIs is "paid". Salary sacrifice is not covered.

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": {
      "targetPensionContribution": "<targetPensionContribution>"
    },
    "name": "calculate_pension_tax_relief"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNorelief-at-source (personal pension, SIPP, many workplace schemes; the default) or net-pay (workplace scheme taken from pay before income tax)
salaryNoEmployment income before any pension deduction
taxYearNoUK tax year, e.g. "2026-27"; earlier years price relief that was never claimed. Defaults to the current one.
taxpayerNoDefaults from the incomes given: both, employed (salary only) or self-employed
grossIncomeNoSelf-employed income before expenses
otherIncomeNoOther non-savings income, such as rental profit or a pension received
contributionIsNoRelief at source only: amounts are gross in the pot (default) or what was paid in
businessExpensesNoAllowable business expenses
flexiblyAccessedNoTrue if taxable money has been taken flexibly from a pension (money purchase allowance)
scottishTaxpayerNoTrue for a Scottish taxpayer (Scottish bands)
employerContributionsNoEmployer contributions, a year (count towards the annual allowance only)
targetPensionContributionYesPersonal pension contributions planned, a year (for an earlier year, what was paid in)
currentPensionContributionNoPersonal pension contributions now, a year

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / contributionIs
      Added value: +{
      +  "description": "Relief at source only: amounts are gross in the pot (default) or what was paid in",
      +  "enum": [
      +    "gross",
      +    "paid"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / employerContributions
      Added value: +{
      +  "description": "Employer contributions, a year (count towards the annual allowance only)",
      +  "maximum": 100000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / flexiblyAccessed
      Added value: +{
      +  "description": "True if taxable money has been taken flexibly from a pension (money purchase allowance)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / method
      Added value: +{
      +  "description": "relief-at-source (personal pension, SIPP, many workplace schemes; the default) or net-pay (workplace scheme taken from pay before income tax)",
      +  "enum": [
      +    "relief-at-source",
      +    "net-pay"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / otherIncome
      Added value: +{
      +  "description": "Other non-savings income, such as rental profit or a pension received",
      +  "maximum": 100000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / salary
      Added value: +{
      +  "description": "Employment income before any pension deduction",
      +  "maximum": 100000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / scottishTaxpayer
      Added value: +{
      +  "description": "True for a Scottish taxpayer (Scottish bands)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / targetPensionContribution / description
      Previous value: -"Personal pension contributions planned, a year"New value: +"Personal pension contributions planned, a year (for an earlier year, what was paid in)"
    • changedInput schema / properties / taxYear / description
      Previous value: -"UK tax year, e.g. \"2026-27\". Defaults to the current one."New value: +"UK tax year, e.g. \"2026-27\"; earlier years price relief that was never claimed. Defaults to the current one."
    • changedInput schema / properties / taxYear / enum
      Previous value: -[
      -  "2026-27",
      -  "2025-26",
      -  "2024-25"
      -]New value: +[
      +  "2022-23",
      +  "2023-24",
      +  "2024-25",
      +  "2025-26",
      +  "2026-27"
      +]
    • addedInput schema / properties / taxpayer
      Added value: +{
      +  "description": "Defaults from the incomes given: both, employed (salary only) or self-employed",
      +  "enum": [
      +    "self-employed",
      +    "employed",
      +    "both"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "grossIncome",
      -  "targetPensionContribution"
      -]New value: +[
      +  "targetPensionContribution"
      +]
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this as a safe, closed-world read, and the description adds substantial behaviour on top: the relief cap at the higher of £3,600 and the year's earnings, the annual allowance check, gross-vs-paid amount convention, and that earlier years can be priced with a claim deadline. It stops short of describing the response shape (headline figures, breakdown) beyond mentioning 'the net cost'.

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?

Front-loaded with the core verb and scope, and every clause carries information — no filler. It is, however, one dense multi-clause run of prose that would read better as a short structured list given the number of distinct conditions it packs in.

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 calculation with no output schema, the description covers the key domain rules (cap, annual allowance, earlier years, exclusions) and hints at the outputs (relief still to claim, net cost). The main remaining gap is that the returned figures and their composition are not outlined.

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%, so the schema already explains all 13 parameters, including the method and contributionIs enums. The description reinforces the gross/paid convention and the earnings cap that ties targetPensionContribution to income, but adds little syntax or constraint detail beyond what the schema states.

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 specific verb and resource (work out income tax relief on UK pension contributions) and immediately narrows scope: self-employed/employed/both, Scotland vs rest of UK, relief-at-source vs net-pay. It explicitly carves out salary sacrifice, so an agent can tell this apart from the salary-sacrifice sibling without opening a 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?

Gives clear conditions of use: relief at source (20% added at source, higher/additional rate still to claim), net pay schemes via payroll, and pricing earlier tax years still open for claim with the deadline and route. The exclusion of salary sacrifice is stated, which implicitly routes the agent elsewhere, though no sibling is named explicitly.

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.