Skip to main content
Glama

FileClerk

calculate_director_pay

Destructive

Work out a UK company director's salary and dividends for one tax year from 2016-17 (tax_year like "2026-27"): income tax, dividend tax and employee NI for the director; employer NI, Corporation Tax on the profit left and retained profit for the company; and the total tax. profit_pence is the company's profit before the director's salary and employer NI. other_employees: true allows the Employment Allowance. Integer pence in and 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": {
      "tax_year": "<tax_year>",
      "region": "<region>",
      "salary_pence": "<salary_pence>",
      "dividends_pence": "<dividends_pence>",
      "profit_pence": "<profit_pence>"
    },
    "name": "calculate_director_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionYes
tax_yearYes
associatedNo
profit_penceYes
salary_penceYes
dividends_penceYes
other_employeesNo

Output Schema

NameRequiredDescriptionDefault
linesYes
personYes
companyYes
tax_yearYes
warningsYes
salary_bandsYes
dividend_bandsYes
total_tax_penceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior2/5

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

The description does add real behavioural substance the schema lacks: it defines profit_pence as profit before director salary and employer NI, and states integer pence in and out. However, "Nothing is stored" directly conflicts with the supplied annotations (destructiveHint=true, readOnlyHint=false, openWorldHint=true), which signal a state-changing, non-read-only operation — an agent cannot tell whether calling this is safe or mutating. That inconsistency is flagged as an annotation contradiction.

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 purpose and output scope are front-loaded in the first sentence, followed by short, high-value clauses about profit_pence, Employment Allowance, units and statelessness. Dense but nearly every clause carries information; only "Nothing is stored" reads as surplus (and is in tension with the annotations).

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?

An output schema exists, so the enumerated results do not need return-value detail, and the description correctly focuses on inputs and the profit_pence convention. Still, for a 7-parameter financial calculator with 0% schema coverage, two parameters (associated, region) that materially change the result are left unexplained, and the state-mutation question raised by the annotations is unresolved.

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 0%, so the description must carry the parameter burden. It explains tax_year's string format ("2026-27"), the critical meaning of profit_pence, the effect of other_employees, and the pence-unit convention — but leaves region, associated (a term of art for CT marginal relief), salary_pence and dividends_pence entirely undefined.

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 opens with a specific verb and resource ("Work out a UK company director's salary and dividends for one tax year") and then enumerates exactly what is computed on each side: income tax, dividend tax and employee NI for the director; employer NI, Corporation Tax and retained profit for the company; plus total tax. That enumeration also separates it from the narrower siblings like calculate_income_tax or calculate_corporation_tax, which cover only one piece of the picture.

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?

Usage context is implied rather than stated: it is for a single UK tax year from 2016-17 onward, and other_employees=true is the switch that enables the Employment Allowance. There is no explicit "use this instead of X when..." routing against the many calculate_* siblings, and no stated preconditions (e.g. what to do if the director also has other income).

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