Skip to main content
Glama

AgentStall: Africa and global data for agents

Tax ID validator: check tax numbers for Africa, India and emerging markets (KRA PIN, Ghana TIN, PAN, CPF/CNPJ and more)

tax_id_validate
Read-onlyIdempotent

Tax ID validation (TIN check) for 14 countries: Kenya KRA PIN, Ghana TIN and Ghana Card PIN, South Africa income tax number, Egypt, Morocco ICE, Algeria NIF, Tunisia MF, Senegal NINEA, Mozambique NUIT, Guinea NIFp, India PAN, Brazil CPF/CNPJ, Turkey VKN, Indonesia NPWP. Checks format and check digit, decodes holder type. Not a registry lookup; input not stored. For KYC, KYB, invoicing and onboarding. Returns JSON with input, country, countryName, type, typeName, normalized, valid, errors, decoded, checks. Read-only; invalid input is rejected before any charge. Price: $0.002 USDC per call (x402, Base mainnet), paid only when the call succeeds.

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

Input Schema

NameRequiredDescriptionDefault
typeNoOptional: tin, pin, ghanacard, tn, ice, nif, mf, ninea, nuit, nifp, pan, cpf, cnpj, vkn or npwp (default: the country's main tax number, guessed from the input)
numberYesThe tax number; spaces, dashes, dots and slashes are ignored
countryYes2-letter ISO code: ZA, KE, GH, EG, MA, DZ, TN, SN, MZ, GN, IN, BR, TR or ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, closed-world, but the description adds material facts the annotations cannot express: data is not stored, invalid input is rejected before any charge, and pricing is $0.002 USDC per call via x402 on Base mainnet paid only on success. It also discloses the check performed (format plus check digit, holder-type decoding), which sets expectations about failure modes.

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?

Front-loaded with the core operation and coverage, then scope exclusion, then return shape, then commercial terms — a sensible ordering with no filler sentences. The long enumeration of country/identifier pairs is dense but earns its place for query matching, though it makes the opening sentence unwieldy.

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?

There is no output schema, and the description compensates by naming the returned JSON fields (input, country, type, normalized, valid, errors, decoded, checks). Combined with the disclosed cost, payment condition, and non-registry scope, an agent has everything needed to call this correctly and interpret the result.

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 schema already documents 'country' as a 2-letter ISO code, 'number' as tolerant of separators, and 'type' with all 15 accepted values plus default behavior. The description's country list loosely reinforces the country/type pairing but adds no syntax, format, or edge-case detail beyond the schema.

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+resource ('Tax ID validation (TIN check)') and enumerates the 14 supported countries with their local identifier names (KRA PIN, Ghana TIN, CPF/CNPJ, PAN, VKN, NPWP), so an agent can match a user's local term to this tool directly. It also explicitly excludes a neighboring function ('Not a registry lookup'), which disambiguates it from the sibling validation tools such as za_validate_tax_number.

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?

Names concrete use contexts ('For KYC, KYB, invoicing and onboarding') and one clear when-not ('Not a registry lookup'), which is real routing guidance. It does not, however, say how to choose between this multi-country tool and country-specific siblings like za_validate_tax_number or za_validate_id_number, leaving overlap to inference.

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