Skip to main content
Glama

Muteware finance tools

Check a Spanish NIF, DNI or NIE

check_spanish_nif
Read-onlyIdempotent

Tests the control character of a Spanish DNI (eight digits and a letter), an NIE (X, Y or Z, seven digits and a letter) or the NIF of an entity (a letter, seven digits and a control digit or letter). When the control character is left out it is worked out. ES in front is accepted. For numbers that start with K, L or M only the form is recognised. It does not tell whether the number was ever issued.

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": {
      "number": "<number>"
    },
    "name": "check_spanish_nif"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesThe number, for example "12345678Z", "X1234567L" or "ESB12345674".

Output Schema

NameRequiredDescriptionDefault
kindNo
validYes
numberNo
reasonNo
messageNo
control_characterNo
control_character_testedNo
expected_control_characterNo
control_character_was_addedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this as read-only, idempotent, non-destructive, and closed-world, but the description adds meaningful behavior beyond them: it explains that the control character is inferred when absent, that only form is recognised for K/L/M numbers, and that it does not verify historical issuance. These are important validation constraints an agent would not know from annotations alone.

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 description is front-loaded with the tool's purpose and packs format rules, fallback behavior, and limitations into a few sentences with little waste. It is slightly dense and run-on, but every clause serves a functional purpose.

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?

For a one-parameter validation tool with an output schema and clear annotations, the description covers the essential semantics: supported identifier types, control-character handling, prefix acceptance, partial K/L/M support, and the important caveat that issuance history is not checked. Nothing needed for correct invocation is missing.

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 the single `number` parameter already has an example, so the baseline is 3. The description adds value by clarifying accepted input forms (DNI/NIE/NIF layouts), ES prefix tolerance, and control-character omission behavior, which goes beyond the schema's example string.

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 ("Tests the control character") and enumerates the exact identifiers it handles: DNI (eight digits and a letter), NIE (X/Y/Z, seven digits and a letter), and entity NIF (letter, seven digits, control digit or letter). This clearly distinguishes it from the sibling VAT/IBAN tools by domain and operation.

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 description gives practical usage context: omitting the control character causes it to be calculated, an ES prefix is accepted, and K/L/M-prefixed numbers are only format-checked. It does not explicitly say when to avoid the tool, but the domain specificity and edge-case notes make appropriate use clear without needing a named alternative.

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