Skip to main content
Glama

United Kingdom Salary and Income Tax Calculator

Gross salary needed for a net amount in United Kingdom

gross_for_target_net
Read-onlyIdempotent

The gross yearly salary in United Kingdom that leaves a given take-home pay, with the same situation options as net_salary. Use it to set a salary ask or check an offer.

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": {
      "net_target": "<net_target>"
    },
    "name": "gross_for_target_net"
  }
}

Input Schema

NameRequiredDescriptionDefault
blindNoBlind Person's Allowance Default false.
periodNoWhether net_target is per year or per month. Default year.
regionNoWhere you live: ruk = England, Wales or Northern Ireland; scotland = Scotland. Default ruk.
childrenNoNumber of dependent children. Default 0.
postgradNoPostgraduate loan Default false.
tax_codeNoTax code on your payslip: standard = Standard (1257L) or not sure; number = A different number code; k = K code; br = BR: basic rate on everything (second job); d0 = D0: higher rate on everything; d1 = D1: additional rate on everything; nt = NT: no tax; 0t = 0T: no allowance. Default standard.
tax_yearNoTax year. Offered: 2026 (final), 2025 (final), 2024 (final). Default 2026. A year that is not listed is not available for this country.
fx_per_eurNoExchange rate: 1 euro = this many GBP, for the euro amounts. Default 0.84 (indicative).
net_targetYesTake-home pay wanted, in GBP
code_numberNoNumber in your tax code. The digits only: 1100 for 1100L, 475 for K475. (code). Default 1257.
pension_pctNoVoluntary employee pension contribution through payroll, % of salary. Default 0.
bonus_annualNoYearly bonus in GBP. Default 0.
pension_baseNoPension percent applies to. Many workplace schemes take the percent only on qualifying earnings. Your payslip or scheme letter says which.: salary = My whole salary; qualifying = Qualifying earnings (£6,240 to £50,270). Default salary.
student_loanNoStudent loan: none = None; plan1 = Plan 1; plan2 = Plan 2; plan4 = Plan 4 (Scotland); plan5 = Plan 5. Default none.
child_benefitNoClaim Child Benefit. With children: Child Benefit is shown, and above £60,000 the charge that claws it back. Default true.
pension_methodNoHow pension is paid. Salary sacrifice saves tax and NI; net pay saves tax; relief at source is paid from net pay and HMRC adds 25%.: sacrifice = Salary sacrifice; netpay = Net pay arrangement; ras = Relief at source. Default sacrifice.
other_sacrificeNoOther salary sacrifice. Cycle to work, electric car or other schemes taken from pay before tax and National Insurance. (£). Default 0.
benefits_in_kindNoTaxable benefits in kind (a year). The yearly taxable value of a company car, medical cover and the like, from your P11D or tax code notice. Taxed, not paid out. (£ / year). Default 0.
state_pension_ageNoI have reached State Pension age. You stop paying National Insurance on wages. Income tax still applies. Default false.
marriage_allowanceNoMarriage Allowance: none = Does not apply or not sure; receive = My partner transfers £1,260 to me; give = I transfer £1,260 to my partner. Default none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / benefits_in_kind
      Added value: +{
      +  "description": "Taxable benefits in kind (a year). The yearly taxable value of a company car, medical cover and the like, from your P11D or tax code notice. Taxed, not paid out. (£ / year). Default 0.",
      +  "maximum": 1000000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / blind
      Added value: +{
      +  "description": "Blind Person's Allowance Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / code_number
      Added value: +{
      +  "description": "Number in your tax code. The digits only: 1100 for 1100L, 475 for K475. (code). Default 1257.",
      +  "maximum": 9999,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / marriage_allowance
      Added value: +{
      +  "description": "Marriage Allowance: none = Does not apply or not sure; receive = My partner transfers £1,260 to me; give = I transfer £1,260 to my partner. Default none.",
      +  "enum": [
      +    "none",
      +    "receive",
      +    "give"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / other_sacrifice
      Added value: +{
      +  "description": "Other salary sacrifice. Cycle to work, electric car or other schemes taken from pay before tax and National Insurance. (£). Default 0.",
      +  "maximum": 200000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / pension_base
      Added value: +{
      +  "description": "Pension percent applies to. Many workplace schemes take the percent only on qualifying earnings. Your payslip or scheme letter says which.: salary = My whole salary; qualifying = Qualifying earnings (£6,240 to £50,270). Default salary.",
      +  "enum": [
      +    "salary",
      +    "qualifying"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / state_pension_age
      Added value: +{
      +  "description": "I have reached State Pension age. You stop paying National Insurance on wages. Income tax still applies. Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tax_code
      Added value: +{
      +  "description": "Tax code on your payslip: standard = Standard (1257L) or not sure; number = A different number code; k = K code; br = BR: basic rate on everything (second job); d0 = D0: higher rate on everything; d1 = D1: additional rate on everything; nt = NT: no tax; 0t = 0T: no allowance. Default standard.",
      +  "enum": [
      +    "standard",
      +    "number",
      +    "k",
      +    "br",
      +    "d0",
      +    "d1",
      +    "nt",
      +    "0t"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / tax_year
      Added value: +{
      +  "description": "Tax year. Offered: 2026 (final), 2025 (final), 2024 (final). Default 2026. A year that is not listed is not available for this country.",
      +  "enum": [
      +    2026,
      +    2025,
      +    2024
      +  ],
      +  "type": "integer"
      +}
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered and the description needn't restate it. What the description adds is the linkage to net_salary's option set, which is useful context for a reverse-solve tool. It does not disclose whether an exact gross always exists, how tax-year selection affects the result, or what the response contains.

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?

Two short sentences with the core computation front-loaded before the use case. No filler or repetition of the title. It is arguably too terse for a 20-parameter tool, but every sentence present carries weight.

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?

The tool is complex (20 params) but the schema fully documents every parameter and the annotations cover the safety profile, so the description's burden is light. The remaining gap is that there is no output schema and the description doesn't say what comes back or that the inverse solve may not land exactly on the target. That is a real but modest omission given how much the structured fields carry.

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 description coverage is 100% across all 20 parameters, including full enum explanations for tax_code, region, pension_method and student_loan, so the baseline is 3. The description contributes only the pointer that the option set mirrors net_salary and never mentions net_target, period or tax_year semantics itself. Nothing is added beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific computation: the gross yearly UK salary that produces a given take-home amount. It distinguishes itself from the sibling net_salary by framing the relationship ('same situation options as net_salary'), so an agent can see it is the inverse direction. It stops short of naming the country scope or tax years explicitly, but the direction of the calculation is unambiguous.

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

Usage Guidelines3/5

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

It gives two concrete use cases ('set a salary ask or check an offer'), which implies when to reach for it. It does not state when not to use it, and the only implicit alternative is the sibling net_salary via the cross-reference rather than an explicit 'use net_salary when you have gross and want net'. Minimal but adequate routing.

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.

Resources