Skip to main content
Glama

FileClerk

calculate_corporation_tax

Destructive

Work out UK Corporation Tax for a period of accounts (from 1 April 2015, up to 18 months): taxable total profits in whole pounds, the period dates (YYYY-MM-DD) and the number of associated companies. Splits a period over 12 months into two accounting periods and each at 31 March, applies 19%/25% with marginal relief (3/200) from 1 April 2023, reduces the limits for a short period and divides them among associated companies. Returns integer pence per part and per period, with the payment date. 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>",
      "profits": "<profits>"
    },
    "name": "calculate_corporation_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
profitsYes
associatedNo
period_end_onYes
period_start_onYes

Output Schema

NameRequiredDescriptionDefault
linesYes
periodsYes
tax_penceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior1/5

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

The description closes with 'Nothing is stored', which is a stateless pure-computation behaviour, yet the annotations declare readOnlyHint=false and destructiveHint=true. That is a direct conflict for a calculator returning pence amounts. The rich disclosure of rates, marginal relief, period splitting and output granularity is otherwise good, but the contradiction with the declared safety profile is the dominant signal.

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 dense sentences with the purpose and validity window front-loaded, followed by the algorithm and the return shape. Every clause is substantive, though the second sentence is a long run-on that would read better split into the mechanics and the outputs.

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?

For a multi-step financial calculation with 0% schema coverage, the description covers the domain limits, the period-splitting rule, the rate change from 1 April 2023, short-period and associated-company limit reductions, and the return granularity. An output schema exists, so the restatement of return values is slightly redundant but harmless; the only real gap is the unaddressed annotation mismatch.

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 carry the burden, and it does: it names 'taxable total profits in whole pounds', the 'period dates (YYYY-MM-DD)' and 'the number of associated companies', mapping onto all four properties including the optional associated-companies count. It adds unit and format conventions the bare schema omits; only the optionality of `associated` is left implicit.

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 Corporation Tax for a period of accounts' — and immediately bounds the calculation domain (post-1 April 2015, up to 18 months). It is clearly distinguishable from siblings like calculate_income_tax or calculate_s455 whose names imply different tax regimes.

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 the validity window (from 1 April 2015, max 18 months) and the required inputs, which implies when the tool is applicable, but it never names an alternative or states when NOT to use it (e.g. versus calculate_income_tax for non-corporation-tax liabilities). Guidance is inferred rather than explicit.

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