Skip to main content
Glama

calculate uk late payment b2b

calculate_uk_late_payment_b2b
Read-onlyIdempotent

Statutory interest and fixed compensation on a late invoice between businesses in the UK (Late Payment of Commercial Debts (Interest) Act 1998: 8% + the Bank of England reference rate you give; £40/£70/£100). A half-year rate that was not read is flagged, not invented. General information only: not legal advice, as of 2026-11-22.

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": {
      "amount": "<amount>",
      "due": "<due>",
      "paid": "<paid>"
    },
    "name": "calculate_uk_late_payment_b2b"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueYesDate payment was due (YYYY-MM-DD)
paidYesDate paid, or today (YYYY-MM-DD)
amountYesInvoice amount
baseRateNoUK: Bank of England reference rate in %
consumerDebtorNoDE: the debtor is a consumer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description earns credit for the extra behaviour it discloses: missing half-year rates are flagged rather than fabricated, and the output is framed as general information, not legal advice, with an as-of date. It still does not say what the returned figures look like or how the £40/£70/£100 tier is selected.

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?

Three compact sentences that front-load the calculation and follow with the statute, the rate inputs, and the caveat. Dense legal phrasing but no sentence is redundant.

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?

With no output schema, the description should convey what a caller gets back (interest amount, compensation, totals) and how compensation tiers are chosen; neither is present. The rate-flagging behaviour and legal disclaimer are helpful, but a calculation tool that returns nothing described leaves a real gap.

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 100%, so the baseline is 3; the description adds genuine meaning by spelling out the formula linkage — 8% plus the Bank of England reference rate supplied via baseRate — which the schema alone does not express. The £40/£70/£100 figures hint at the fixed-compensation tiers, though the selection rule and the stray consumerDebtor flag remain unexplained.

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?

States the specific computation (statutory interest and fixed compensation), the resource (a late B2B invoice), and grounds it in the named statute, so the agent knows exactly what is calculated. It does not explicitly differentiate itself from the sibling calculate_uk_late_payment_interest, leaving the boundary between the two to inference.

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 implies scope via 'between businesses in the UK' and the 1998 Act citation, which effectively excludes consumer debts and non-UK cases. But it never names an alternative tool or states exclusions outright, and it says nothing about the consumerDebtor parameter that appears in a UK tool's schema.

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.