Skip to main content
Glama

specgrid-eu-compliance

Validate Spanish NIF/NIE/CIF, EU VAT & IBAN

tax_id_validate
Read-onlyIdempotent

Deterministically verify Spanish DNI/NIE/CIF check digits, EU-27 VAT regex/checksum formats, and ISO 13616 BigInt Modulo-97 IBAN checksums in one call. Stateless, offline-math, read-only with zero storage; supply one, two, or all three identifiers and receive normalized values plus valid/type/reason flags for each supplied field (never calls external government APIs or stores PII). Use at customer onboarding or before calling einvoice_generate / sepa_epc_qr; use sepa_epc_qr instead when you also need a scannable payment QR SVG.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tax_id_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibanNoOptional International Bank Account Number validated for exact country length and ISO 13616 Modulo-97 = 1 (e.g. "ES9121000418450200051332").
euVatNoOptional EU-27 VAT identifier with 2-letter country prefix (e.g. "ESB85905495", "DE123456789", "BE0123456789").
spanishTaxIdNoOptional Spanish DNI, NIE (X/Y/Z), or company CIF to verify check letter/digit (e.g. "89890001K", "X1234567L", "B85905495").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / euVat / description
      Previous value: -"EU-27 VAT number with country prefix (e.g. ESB85905495, DE123456789)"New value: +"Optional EU-27 VAT identifier with 2-letter country prefix (e.g. \"ESB85905495\", \"DE123456789\", \"BE0123456789\")."
    • changedInput schema / properties / iban / description
      Previous value: -"International Bank Account Number"New value: +"Optional International Bank Account Number validated for exact country length and ISO 13616 Modulo-97 = 1 (e.g. \"ES9121000418450200051332\")."
    • changedInput schema / properties / spanishTaxId / description
      Previous value: -"Spanish DNI, NIE, or CIF"New value: +"Optional Spanish DNI, NIE (X/Y/Z), or company CIF to verify check letter/digit (e.g. \"89890001K\", \"X1234567L\", \"B85905495\")."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety bar is low; the description still adds substantive traits: stateless, offline-math, zero storage, no external government API calls, no PII retention, plus the shape of what comes back (normalized values with valid/type/reason flags). None of that is recoverable from the annotations.

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 capability and ending with the routing rule, with no filler. It is dense and the parenthetical '(never calls external government APIs or stores PII)' slightly interrupts flow, keeping it just short of a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description steps in to describe return content (normalized values plus valid/type/reason flags per supplied field), and for a stateless three-optional-parameter validator there is no remaining ambiguity about cost, side effects, or prerequisites.

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% and each property already documents format and an example, so the baseline is 3. The description earns an extra point by stating the combination contract — 'supply one, two, or all three identifiers' — which the schema does not convey (all three are optional with no stated minimum or interaction).

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 opens with a specific verb and three concrete resources: 'Deterministically verify Spanish DNI/NIE/CIF check digits, EU-27 VAT regex/checksum formats, and ISO 13616 BigInt Modulo-97 IBAN checksums'. It also bounds scope ('in one call', 'never calls external government APIs'), so an agent can distinguish it from einvoice_validate or sepa_epc_qr without reading 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 Guidelines5/5

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

It names both a positive context ('at customer onboarding or before calling einvoice_generate / sepa_epc_qr') and an explicit alternative with its selecting condition ('use sepa_epc_qr instead when you also need a scannable payment QR SVG'). That is a clear when/when-not routing rule rather than implied usage.

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.

Resources