Skip to main content
Glama

calculate es late filing surcharge

calculate_es_late_filing_surcharge
Read-onlyIdempotent

Spanish surcharge for filing late without a prior request (LGT art. 27): 1% plus 1% per full month late; after 12 months 15% plus late-payment interest (rate supplied by the caller, the 2026 rate is not verified); 25% reduction if paid on time. Spain, as of 2026-11-21 (BOE consolidated texts, AEAT and Seguridad Social). General information and estimates only; no personalised advice, representation or filing. Unverified 2026 values (reduced autónomo quota, 7% hard-to-justify expenses, 2026 late-payment interest rate, regional scales, 2027 calendar) are flagged, not assumed.

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": {
      "cuota": "<cuota>",
      "due": "<due>",
      "filed": "<filed>"
    },
    "name": "calculate_es_late_filing_surcharge"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueYesEnd of the filing period
cuotaYesTax due (EUR)
filedYesFiling date
pagoEnPlazoNoWill pay the surcharge on time (25% reduction)
interesAnualNoLate-payment interest rate % per year (only after 12 months)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish a safe, read-only, idempotent, closed-world computation, so the bar is lower; the description still contributes substantive context by flagging unverified 2026 inputs (including the caller-supplied interest rate), pinning jurisdiction and as-of date, and disclaiming advisory/filing use. It stops short of describing the returned result shape or how partial-month rounding is 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?

The rate rules are front-loaded in a single dense sentence, followed by scope/date and disclaimer sentences. The final sentence lists unverified items (reduced autónomo quota, 7% hard-to-justify expenses, regional scales, 2027 calendar) that are largely irrelevant to this specific surcharge calculation and dilute focus.

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 5-parameter financial calculation with no output schema, the definition covers the formula, the role of each optional input, jurisdiction, as-of date and verification caveats. The notable gap is what the tool returns (surcharge amount, interest, total) and how month rounding is handled, which the agent must infer.

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?

The description adds real meaning beyond the 100% covered schema: it explains that the interest rate is supplied by the caller and only applies after 12 months, and that the 25% reduction corresponds to paying the surcharge on time, which explains the pagoEnPlazo flag. It does not add format or edge-case detail for cuota/due/filed, but the schema already documents those.

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 verb and resource ('Spanish surcharge for filing late without a prior request') and goes further by stating the exact statutory basis (LGT art. 27) and the rate schedule (1% + 1%/month, 15% after 12 months). An agent can tell this apart from sanction or appeal-deadline 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?

Usage is implied by the formula and the closing disclaimer ('General information and estimates only; no personalised advice, representation or filing'), which tells the agent this is not a filing or advisory tool. However, there is no explicit when-to-use vs. when-not-to-use guidance and no named alternative (e.g., the sanction or appeal-deadline calculators) to route the agent toward.

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.