Skip to main content
Glama

UK Data: UK business calculators

late_payment_interest

Read-onlyIdempotent

Statutory interest and fixed compensation on a late commercial invoice (base rate plus 8%). (cost: 1 credit)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "late_payment_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueDateNoYYYY-MM-DD, required
paidDateNoYYYY-MM-DD
invoiceAmountNonumber, required
baseRateOverrideNonumber

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: the statutory formula (base rate + 8%) and that the call costs 1 credit. It omits where the base rate comes from and what happens when paidDate is absent (unpaid invoice), which matters for a calculation whose whole point is the rate applied.

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?

A single tight sentence that front-loads the domain concept and formula, with the credit cost appended in a clearly separable parenthetical. No filler or repetition; a slightly more verb-forward opening would make it a 5.

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?

There is no output schema, so the description should say what comes back (interest amount, fixed compensation, total) and it does not. For a four-parameter financial calculation the definition is serviceable but leaves the agent guessing about the response shape and about the default behavior for missing dates.

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 100%, so all four parameters are already documented with types and formats, making 3 the baseline. The phrase 'base rate plus 8%' does add meaning to baseRateOverride by revealing it overrides the statutory base rate, but the description does not clarify the semantics of an omitted paidDate or an omitted dueDate given that no parameters are marked required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific computation (statutory interest and fixed compensation on a late commercial invoice) with the underlying formula (base rate plus 8%), which lets an agent distinguish it from sibling calculators like vat, redundancy_pay, or statutory_sick_pay. It stops short of a clean verb-first phrasing but the resource and calculation are unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance: nothing states the jurisdiction (implied UK late payment legislation), that the invoice must be commercial/B2B, or how this differs from the generic calculate tool. The only contextual note is a cost signal ('cost: 1 credit'), which informs budget decisions but not tool selection.

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