Skip to main content
Glama

UK take-home pay after tax

calculate_take_home_pay
Read-onlyIdempotent

What a UK employee's pay comes to after income tax, National Insurance (category A), student loan and a workplace pension, for the current tax year, by the year, month and week, with each tax band, the sources and a link to the worked answer on vouchernaut.com. Worked on the year as a whole, as HMRC's rates are; a payslip works each pay period on its own, so it can be a few pounds a year different. Covers England, Wales, Northern Ireland and Scotland and everyday tax codes, not K codes, benefits in kind, other income or the self-employed. Information, not financial advice.

Input Schema

NameRequiredDescriptionDefault
perNoWhat the salary is peryear
regionNoWhere the employee lives for tax: Scotland sets its own bandsengland
salaryYesPay before anything comes off, in pounds, for the `per` period
pensionNoWorkplace pension: net pay (taken before tax), ras (relief at source: taken after tax, basic rate relief added) or sacrifice (salary sacrifice)none
tax_codeNoTheir tax code, e.g. "1257L", "S1257L", "BR"; leave out for the standard one
student_loansNoStudent loan plans repaid through pay: plan1 (England or Wales before September 2012, and Northern Ireland), plan2 (England from September 2012 to July 2023, and Wales from September 2012), plan4 (Scotland), plan5 (England from August 2023), postgrad (master's or doctoral loans in England or Wales)
hours_per_weekNoHours worked a week, for an hourly rate
pension_monthlyNoOr the contribution in pounds a month
pension_percentNoThe employee's contribution as a percent of pay
pension_on_qualifying_earningsNoWhether the percent is of qualifying earnings (the auto-enrolment band) rather than all pay

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond them: the annual calculation basis and its few-pounds-a-year divergence from a payslip, the regional coverage, and the 'information, not financial advice' caveat. It still doesn't state response shape beyond a high-level list, which keeps it at 4.

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 opening sentence is long but front-loads what is computed and what is returned, and each subsequent sentence earns its place by adding a caveat, a coverage limit, or a disclaimer. Slightly dense punctuation over four sentences keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 return-value burden and does so ('by the year, month and week, with each tax band, the sources and a link to the worked answer'). Combined with the accuracy caveat, regional coverage and scope exclusions, an agent has everything needed to call it correctly.

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%, so all ten parameters are already documented and the baseline is 3. The description adds only holistic context (NI category A, tax-calculated-on-annual-basis), and its 'year, month and week' phrasing omits the 'hour' enum value present in the schema.

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 and resource with full scope: net UK pay after income tax, National Insurance (category A), student loan and workplace pension, broken down by year/month/week. It is immediately distinguishable from siblings like student_loan_repayments or check_refund_rights.

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 states the scope conditions and explicit exclusions (not K codes, benefits in kind, other income, or the self-employed) and clarifies the annual-vs-payslip calculation basis. It does not route the agent to a named alternative such as student_loan_repayments for loan-only queries, so it falls short of a 5.

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