Skip to main content
Glama
svkbogislav

LatAm Data MCP

by svkbogislav

Validate Tax Id

validate_tax_id

Validates a Latin American tax ID: checks format and check digit, auto-detects the ID type, and returns canonical formatting and entity classification.

Instructions

Validate a Latin American national tax ID, including its check digit.

Supported countries (ISO 3166-1 alpha-2): CL (RUT), AR (CUIT/CUIL), MX (RFC), BR (CPF or CNPJ — auto-detected, including 2026 alphanumeric CNPJs), CO (NIT), PE (RUC), UY (RUT), EC (cédula or RUC — auto-detected), PY (RUC), VE (RIF), GT (NIT), DO (RNC), PA (RUC + DV), CR (cédula física/jurídica/DIMEX — format only), BO (NIT — format only).

Verifies the country's check digit where one is algorithmically verifiable. Exception: Mexico's RFC — SAT-issued RFCs deviate from the published check-character algorithm, so for MX only the format and the embedded birth/incorporation date are validated (the result carries "check_digit_verified": false to make this explicit).

Returns validity, canonical formatting, and — where the ID encodes it — whether it belongs to a person, company, or public entity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tax_idYes
countryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it delivers: it states check-digit verification is conditional, discloses the Mexico RFC exception and the check_digit_verified:false flag, and notes format-only coverage for CR and BO. It also clarifies auto-detection for BR/EC and describes the return information: validity, canonical formatting, and entity type.

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?

Front-loaded with the core action, followed by a dense but necessary country list, then the key algorithm exception and return summary. Every sentence and parenthetical contributes to correct invocation; there is no filler.

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 high-complexity tool covering 14 countries and multiple ID schemes, the description covers accepted ID types, check-digit verifiability, exceptions, auto-detection, and result semantics. Since an output schema exists, the lack of exhaustive return-field detail is not a gap; nothing an agent needs to select or call the tool correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the schema only defines two plain strings, so the description must add meaning; it does by defining country as ISO 3166-1 alpha-2 codes and mapping each code to accepted tax ID types, including auto-detection for CPF/CNPJ and cédula/RUC. It also ties check-digit behavior to the tax_id parameter.

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 resource: 'Validate a Latin American national tax ID, including its check digit.' It also enumerates supported country-specific ID types (CL RUT, AR CUIT/CUIL, MX RFC, etc.), which clearly distinguishes it from sibling validators like validate_phone_number and validate_bank_account.

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?

It gives clear context for when to use: validating tax IDs of the listed Latin American countries, with auto-detection and format-only caveats. However, it does not explicitly name alternatives or state when-not-to-use it, so it stops short of fully explicit alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.