Skip to main content
Glama

validate_nif

Validate Portuguese NIF/NIPC tax identification number (mod-11 check digit).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nifYesPortuguese NIF or NIPC (9 digits)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses the algorithm (mod-11 check digit) but omits critical behavioral details such as return type (true/false versus throwing an error), handling of invalid formats, or any side effects. The description is too sparse to fully inform an agent of the tool's runtime behavior.

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

Conciseness5/5

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

The description is a single, focused sentence that includes both the resource and the validation method. No unnecessary words or repetition, making it optimally concise.

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

Completeness2/5

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

The tool is simple, but with no annotations and no output schema, the description should at least clarify the return behavior. It does not state whether the tool returns a boolean or raises an exception for invalid input. This gap prevents the description from being fully complete for an agent selecting and invoking the tool.

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?

Schema description coverage is 100%, so the parameter 'nif' is already described as a 9-digit Portuguese NIF/NIPC. The description repeats this but adds no new meaning beyond mentioning the mod-11 check digit, which is more about behavior than parameter semantics. Baseline 3 is appropriate.

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 clearly states the tool validates Portuguese NIF/NIPC tax identification numbers using the mod-11 check digit. This specific verb+resource+scope distinguishes it from sibling validation tools like validate_iban and verify_eu_vat.

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 usage guidelines are provided. The description does not mention when to use this tool versus alternatives, nor does it exclude specific cases. While the tool's purpose is obvious from the name, the description itself offers no explicit guidance on selection.

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