Skip to main content
Glama

dato402 – Spain & EU data

Validate a Spanish tax ID

spain_validate_tax_id
Read-onlyIdempotent

Validate a Spanish tax ID (DNI, NIE, NIF or CIF) with the official check-digit algorithm. Returns document type, company legal form and validity.

ES: Valida un DNI, NIE, NIF especial o CIF español con el algoritmo oficial de dígito de control. Devuelve el tipo de documento, la forma jurídica (CIF) y si es válido.

Source of truth: official Spanish/EU open data. Free via MCP up to 20 calls/day; unlimited via the x402 pay-per-call endpoint https://dato402.com/api/es/nif ($0.001 USDC).

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": {
      "valor": "<valor>"
    },
    "name": "spain_validate_tax_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
valorYesDocumento a validar, p. ej. 12345678Z o B12345674

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds value beyond that: it enumerates the returned fields (document type, company legal form, validity), discloses the data source, and states a concrete rate limit plus a priced fallback endpoint — all behavior an agent cannot get from 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?

The opening sentence front-loads the verb, resource, algorithm and return values. The full Spanish restatement duplicates the English content, and the pricing/URL sentence is dense, but both serve a plausible audience and nothing is truly off-topic.

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?

With no output schema, the description correctly compensates by naming what is returned (document type, CIF legal form, validity). For a one-parameter, idempotent validation call whose annotations cover safety, this is nearly complete; only an explicit format/normalization hint for invalid inputs is missing.

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?

There is a single parameter at 100% schema description coverage, and the schema already provides a description and two example values (12345678Z, B12345674). The description adds no further constraint, format detail, or normalization guidance beyond what the schema supplies, so the baseline 3 applies.

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?

States a specific verb ('Validate') and a precisely scoped resource ('Spanish tax ID (DNI, NIE, NIF or CIF)'), plus the algorithm used ('official check-digit algorithm') and the return payload. The enumerated document subtypes make it distinguishable from near-siblings such as eu_vat_check or iban_validate without opening any 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 strongly implied by the narrow subject matter, and the note about 20 free calls/day versus the x402 pay-per-call path helps an agent decide how to route volume. However, there is no explicit statement of when to use this versus eu_vat_check or other validation siblings, and no prerequisites or exclusions are given.

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