Skip to main content
Glama

calculate de late payment b2b

calculate_de_late_payment_b2b
Read-onlyIdempotent

Statutory interest and fixed compensation on a late invoice between businesses in Germany (§ 288 BGB: Basiszinssatz + 9 points, 10.52% from 1 July 2026; €40 flat fee). 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_de_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.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, closed-world, non-destructive), so the description is free to spend its words elsewhere, and it does: it discloses the rate source and the key behavioral promise that an unread half-year rate is flagged rather than invented. That is exactly the kind of failure-mode disclosure an agent cannot get from structured fields. It stops short of saying what the response contains, which keeps it off a 5.

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?

Front-loaded with the calculation and its statutory basis, then the rate and fee, then the edge-case behavior and the disclaimer. Dense but every clause carries information; the only soft spot is the hard-coded dated rate string, which will age.

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 five-parameter, annotation-covered calculator with no output schema, the description supplies the legal basis, the rate mechanics, the flat fee, and the fallback behavior when a rate is unavailable. What is missing is a hint at the returned components (interest vs. fee vs. total), which matters more here precisely because there is no output schema.

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 the baseline is 3. The description adds domain meaning for the rate composition (Basiszinssatz + 9 points) but never explains how the two odd schema fields behave here: baseRate is labeled a UK Bank of England rate inside a German tool, and consumerDebtor would plausibly change the uplift, which the description's B2B framing does not reconcile.

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?

The description names a specific computation (statutory interest plus fixed compensation) on a specific resource (a late B2B invoice) in a specific jurisdiction, and anchors it to the statutory basis (§ 288 BGB: Basiszinssatz + 9 points, €40 flat fee). That is enough for an agent to separate it from the ES/FR/UK late-payment siblings 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 Guidelines3/5

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

Scope is implied by 'between businesses in Germany' and by the 'not legal advice' disclaimer, which tells the agent this is an estimate rather than a filing. There is no explicit statement of when to pick this over a sibling or when the calculation does not apply (for example the consumer-debtor case that the schema exposes).

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.