Skip to main content
Glama

FileClerk

calculate_s455

Destructive

Work out UK s455 tax on a director's (participator's) loan from a close company for one accounting period (at most 12 months): loans made in the period with dates and whole-pound amounts, repayments with dates, and the balance owed from earlier periods. Each loan at the rate for its date (35.75% from 6 April 2026); repayments clear the oldest debt first; nothing to pay on what is repaid within 9 months and 1 day of the period end; later repayments are reclaims with their earliest date. Warns on the 30-day rule. 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": {
      "period_start_on": "<period_start_on>",
      "period_end_on": "<period_end_on>",
      "loans": "<loans>"
    },
    "name": "calculate_s455"
  }
}

Input Schema

NameRequiredDescriptionDefault
loansYes
repaymentsNo
period_end_onYes
opening_balanceNo
period_start_onYes

Output Schema

NameRequiredDescriptionDefault
linesYes
loansYes
due_onYes
reclaimsYes
warningsYes
tax_penceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior2/5

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

The description is behaviorally rich — it discloses the per-date rate (35.75% from 6 April 2026), oldest-debt-first repayment allocation, the 9-month-and-1-day relief window, reclaim treatment with earliest date, a 30-day-rule warning, and pence-rounding of output. However, its closing claim 'Nothing is stored' conflicts with annotations declaring readOnlyHint=false, destructiveHint=true and idempotentHint=false, which will mislead an agent about risk and whether approval is needed.

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?

Purpose is front-loaded in the first clause and every subsequent clause (rate, allocation order, relief window, rounding, storage) carries real information with no filler. It is a single very dense semicolon-chained run, which is harder to scan than short structured sentences would be.

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?

The rule set the agent needs is all present: periods capped at 12 months, per-date rates, repayment ordering, the 9-month relief, reclaim handling and the 30-day warning. Return values need not be explained because an output schema exists, and 'Integer pence out' closes the remaining question of units.

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 description coverage is 0%, so the description carries the full burden, and it does map meaning onto all five parameters: period start/end, dated loan amounts, dated repayments, and the opening balance carried from earlier periods. It stops short of stating the accepted date format or clarifying that repayments are optional, which leaves some ambiguity for a 0%-coverage 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?

States a specific verb and resource ('Work out UK s455 tax on a director's (participator's) loan from a close company') plus the scope (one accounting period, at most 12 months), which clearly separates it from siblings such as calculate_corporation_tax or calculate_income_tax. An agent knows exactly which computation this tool performs without opening the 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?

The description sets clear preconditions for use: a single accounting period of no more than 12 months, loans with dates and whole-pound amounts, repayments with dates, and the opening balance from earlier periods. It never explicitly excludes cases (e.g. loans not from a close company, or multi-period aggregation) or points to a sibling alternative, so guidance is clear but not complete.

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