Skip to main content
Glama

calculate es vat

calculate_es_vat
Read-onlyIdempotent

Spanish VAT on an invoice: 21% / 10% / 4% (LIVA art. 90, 91) and equivalence surcharge 5.2% / 1.4% / 0.5% (tobacco 1.75%, LIVA art. 161). Notes that Spain has no domestic small-business VAT franchise (LIVA art. 120, as of 2026-11-21). 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": {
      "base": "<base>",
      "tipo": "<tipo>"
    },
    "name": "calculate_es_vat"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesTaxable base (EUR)
tipoYesVAT rate %
recargoNoCustomer is a retailer under the equivalence surcharge

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context: rates are sourced from BOE consolidated texts/AEAT/Seguridad Social as of 2026-11-21, and unverified 2026 values are 'flagged, not assumed'. However, it says nothing about the output or how the surcharge interacts with the computed amount.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text opens mid-thought ('Spanish VAT on an invoice: 21% / 10% / 4%...') without a leading statement of the operation, then piles on statute citations and a long unverified-values caveat. Several listed items (reduced autónomo quota, 7% hard-to-justify expenses, 2026 late-payment interest, regional scales, 2027 calendar) are unrelated to a VAT calculation and dilute the signal.

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?

For a 3-parameter, no-output-schema tool, the definition should at minimum say what the calculation returns (VAT amount, surcharge amount, total), which it does not. Domain caveats and rate sourcing are thorough, but the missing return-value explanation leaves a real gap for an agent assembling a response.

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 coverage is 100%, so the baseline is 3, but the description goes beyond the schema by enumerating the allowed rates and, importantly, associating the `recargo` boolean with the equivalence-surcharge rates (5.2% / 1.4% / 0.5%, tobacco 1.75%) that the schema merely labels 'retailer under the equivalence surcharge'. That is real semantic enrichment for the third parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies the resource (Spanish VAT: 21% / 10% / 4% under LIVA art. 90, 91, plus equivalence surcharge 5.2% / 1.4% / 0.5%) but never states plainly that the tool computes VAT on a taxable base. There is no explicit verb like 'calculate' tying the rates to the `base` and `tipo` inputs, so the agent must infer the operation from the name and rates list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given, and no sibling is named as an alternative (e.g. compare_vat_tax, check_fr_vat_franchise, calculate_es_autonomo_quota). The only usage context is a scope disclaimer ('General information and estimates only; no personalised advice, representation or filing'), which limits liability but does not help the agent pick between tools.

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.