Skip to main content
Glama

FileClerk

calculate_penalty

Destructive

Work out UK late filing penalties and interest for given dates: the Companies House accounts penalty (private or public bands, doubled when last year's accounts were also late), CT600 flat penalties by the return's filing date (higher for returns due on or after 1 April 2026; third late in a row is higher), the tax-geared penalty (10% or 20% of unpaid tax) and HMRC late payment interest day by day across rate changes. Money is integer pence. A missing filed or paid date is measured to today. Interest assumes a 365-day year. 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": {
      "kind": "<kind>"
    },
    "name": "calculate_penalty"
  }
}

Input Schema

NameRequiredDescriptionDefault
ctNo
kindYes
todayNo
accountsNo

Output Schema

NameRequiredDescriptionDefault
ctYes
notesYes
accountsYes
measured_toYes
total_penceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior2/5

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

The description discloses genuinely useful behavior: money is integer pence, missing filed/paid dates fall back to today, and interest assumes a 365-day year. But the closing claim 'Nothing is stored' reads as a non-destructive, read-only computation, while annotations declare readOnlyHint=false and destructiveHint=true, leaving the agent with conflicting safety signals.

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 adds a distinct calculation rule rather than filler. It is a dense single block though, and the rules could be broken up so each regime is scannable.

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 return values need no explanation, and the rate-change/365-day assumptions are covered. For a nested, four-parameter tool with zero schema description coverage, though, the description should have tied each rule to its field and clarified the read-only vs destructive question.

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 parameter meaning, and it partially does: it explains the doubling logic tied to last year's late accounts, the third-late-in-a-row uplift, and the missing-date-defaults-to-today rule. Yet it never maps these to actual field names (kind, today, late_last_year, third_late, unpaid_pence) or explains how the ltd/llp/plc enum selects the private vs public band, so an agent still has to guess where values belong.

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?

Names a specific verb ('work out') and resource ('UK late filing penalties and interest') and enumerates the exact regimes covered: Companies House accounts penalty, CT600 flat penalties, tax-geared penalty, and HMRC late payment interest. It distinguishes itself from siblings like calculate_corporation_tax or calculate_deadlines purely from the description.

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 'for given dates' framing plus the listed regimes makes it clear when an agent should reach for this rather than a tax or deadline calculator. However, it never explicitly names an alternative or states a when-not condition, so routing still requires the agent to infer from sibling names.

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