Skip to main content
Glama

FileClerk

calculate_income_tax

Destructive

Work out UK take-home pay from gross pay: income tax by band (England, Wales, Northern Ireland, or Scotland's bands from 2017-18), employee Class 1 National Insurance with mid-year rate changes, student loans (plan1, plan2, plan4, plan5, postgraduate) and net pay per year, month and week, for tax years 2011-12 to 2026-27 (tax_year like "2026-27"). gross_pence is pay for one frequency period (year, month, week, day, hour). Standard tax code, no pension. Integer pence out. Nothing is stored.

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": {
      "gross_pence": "<gross_pence>",
      "frequency": "<frequency>",
      "tax_year": "<tax_year>",
      "region": "<region>"
    },
    "name": "calculate_income_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNo
regionYes
tax_yearYes
frequencyYes
gross_penceYes
postgraduateNo
days_per_weekNo
hours_per_weekNo

Output Schema

NameRequiredDescriptionDefault
weekYes
yearYes
bandsYes
linesYes
loansYes
monthYes
ratesYes
tax_yearYes
personal_allowance_penceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior1/5

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

The description explicitly says 'Nothing is stored' and describes a calculation, which directly contradicts annotations declaring readOnlyHint=false and destructiveHint=true. With no explanation of any write, destructive, or external behavior, the definition gives the agent a misleading safety profile.

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 description is a dense single sentence but front-loads the core purpose and includes only materially useful constraints such as tax code, pension exclusion, pence units, and no storage. It could be easier to scan if split, but it is not padded.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tax calculator, the description covers the required inputs and important scope limits, and an output schema exists so return values need not be described. The unexplained days_per_week and hours_per_week parameters and the annotation conflict leave enough missing that it is not fully complete.

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 0%, so the description must explain parameters; it defines gross_pence as pay per frequency period, gives the tax_year format, lists regions and frequency periods, and explains plan1/plan2/plan4/plan5 plus postgraduate. However, days_per_week and hours_per_week are left unexplained.

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 opening verb phrase 'Work out UK take-home pay from gross pay' names the exact computation, and the following clauses specify tax bands, National Insurance, student loans, output periods, and tax-year range. This clearly separates it from sibling calculators such as corporation tax or director pay by subject matter, even without naming them.

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?

The description gives clear scope, including standard tax code, no pension, UK regions, and tax years 2011-12 to 2026-27. However, it does not explicitly say when to use this instead of calculate_director_pay or other tax calculators, nor when not to use it, so usage is inferable from constraints rather than routed.

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