Skip to main content
Glama

calculate fr late payment b2b

calculate_fr_late_payment_b2b
Read-onlyIdempotent

Statutory interest and fixed compensation on a late invoice between businesses in France (art. L441-10 C. com.: ECB rate + 10 points, 12.15% / 12.40% for the two halves of 2026; €40 indemnity). 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_fr_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.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety needs no restating. The description adds real behavioral context beyond them: the legal basis, the exact rate mechanics (ECB + 10 points), the €40 indemnity, and crucially that a missing half-year rate is flagged rather than fabricated, plus an as-of date and a not-legal-advice caveat.

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 sentences, front-loaded with the legal basis and computation, with parenthetical detail on rates. It is dense but nearly every clause carries information; the two specific rate figures are the only element that borders on excess for a tool description.

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 hint at what comes back; it implies interest, the €40 indemnity and a rate-flag, but not the shape, currency or whether the amount is treated as VAT-inclusive. It also leaves the mismatched baseRate/consumerDebtor parameters unaddressed, which is a real gap for a five-parameter tool.

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 schema already documents all five parameters and the baseline is a 3. The description adds no parameter-level meaning, and it does not address the two apparently foreign fields (baseRate documented as a UK Bank of England rate, consumerDebtor documented as a German consumer flag) whose relevance to a French B2B calculation is left unexplained.

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 late invoice) and constrains it precisely to business-to-business invoices in France, citing art. L441-10 C. com. The 'between businesses' qualifier is exactly what separates it from a consumer late-payment variant, so an agent can place it 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 clearly (French B2B late invoices), but there is no explicit when-to-use/when-not statement and no named alternative such as a consumer or non-French late-payment tool. The agent must infer that this tool is the wrong choice for a B2C or non-French debt from the phrase 'between businesses in France' alone.

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.