Skip to main content
Glama

calculate es late payment b2b

calculate_es_late_payment_b2b
Read-onlyIdempotent

Statutory interest and fixed compensation on a late invoice between businesses in Spain (Ley 3/2004: ECB rate + 8 points, 10.40% for the 2nd half of 2026). 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_es_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

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world, non-destructive behavior, so the bar is lower. The description adds real context beyond them: the rate actually applied (10.40% for H2 2026) and, importantly, that an unread half-year rate is "flagged, not invented" — a data-integrity behavior an agent could not infer otherwise — plus a not-legal-advice disclaimer and an as-of date.

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, front-loaded with the computation and resource before the legal citation and disclaimer. The parenthetical rate arithmetic is dense but each element (legal basis, current rate, honesty caveat, disclaimer, as-of date) earns its space; only minor tightening would improve it.

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, and the description never says what comes back — interest amount, days late, fixed compensation figure (Ley 3/2004 sets a fixed € amount that is not mentioned), or a combined total. Legal grounding and the rate-source caveat are well covered, but for a calculator the return shape is a genuine gap.

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, which sets the baseline at 3. The description explains the statutory rate composition but adds no meaning to baseRate or consumerDebtor, which in this schema carry jurisdiction-specific notes (UK / DE) rather than Spanish B2B semantics.

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 states a specific computation (statutory interest plus fixed compensation) on a specific resource (a late invoice between businesses in Spain), and pins the legal basis (Ley 3/2004, ECB rate + 8 points). That immediately distinguishes it from the DE/FR/UK/CN late-payment siblings and from calculate_es_late_filing_surcharge.

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 scope phrase "between businesses in Spain" tells the agent when this tool applies and implicitly excludes consumer debtors and other jurisdictions. It never names an alternative or an explicit when-not condition (e.g. consumer debts, non-Spanish invoices), so routing still relies partly on the sibling name itself.

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.