Skip to main content
Glama

validate_cpf

Read-onlyIdempotent

Validates a Brazilian CPF (Cadastro de Pessoas Físicas) using the official Receita Federal checksum algorithm. Use this tool when processing Brazilian user registrations, invoices, tax forms, e-commerce orders, or any document requiring a valid Brazilian individual taxpayer number. Input must be an 11-digit string (with or without formatting). Returns whether the CPF is mathematically valid, along with the cleaned CPF. Does not verify if the CPF exists in the Receita Federal database — only validates the format and checksum.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cpfYesThe Brazilian CPF to validate. Formatting (dots and dash) is automatically removed. Example: '123.456.789-09' or '12345678909'

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=true, idempotentHint=true), the description discloses the verification algorithm, the return behavior ('Returns whether the CPF is mathematically valid, along with the cleaned CPF'), and the key limitation that it only validates format/checksum, not database existence. This provides full transparency for a read-only validation tool.

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 three concise, front-loaded sentences. The first sentence states the primary purpose, the second gives usage context, and the third details input/output and limitations. Every sentence contributes unique information, with no redundancy or fluff.

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?

Given the tool's simplicity (1 parameter, no output schema, strong annotations), the description covers all essential aspects: purpose, usage scenarios, input format, return value, and limitations. It is fully self-contained and sufficient for an agent to select and invoke the tool correctly, especially compared to similar sibling validation tools.

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?

The schema already documents the 'cpf' parameter well with an example and notes formatting is automatically removed (100% coverage). The description adds the 11-digit length constraint and explicitly allows 'with or without formatting', which reinforces schema semantics without conflicting. Minor added value, hence 4 rather than 5.

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 verb 'Validates' with the specific resource 'Brazilian CPF' and the method 'official Receita Federal checksum algorithm', distinguishing it from sibling validation tools like validate_cnpj and validate_cuil. It also specifies the exact use cases (Brazilian user registrations, invoices, tax forms), leaving no ambiguity about the tool's purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use the tool: 'processing Brazilian user registrations, invoices, tax forms, e-commerce orders, or any document requiring a valid Brazilian individual taxpayer number'. It also provides a critical exclusion: 'Does not verify if the CPF exists in the Receita Federal database', which tells users when not to use it and implies an alternative for existence checks.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool targets a distinct resource (a specific country's holidays or a specific identifier type). The four holiday tools are clearly separated by country, and the seven validation tools are each for a different document or identifier (CNPJ, CPF, CUIL, CUIT, PIX key, RFC, RUT). No two tools appear to overlap in purpose.

Naming Consistency5/5

All tool names follow a consistent pattern: get_<country>_holidays for holiday lookups and validate_<identifier> for validation. Naming is entirely lowercase snake_case with a clear verb prefix, making it easy to predict tool names.

Tool Count5/5

With 11 tools, the server is well-scoped for its purpose of providing Latin American business utilities. The set is neither too sparse nor overly large, and each tool contributes a distinct function. This count is appropriate for the intended domain.

Completeness4/5

The tool surface covers the major Latin American economies (Argentina, Brazil, Chile, Mexico) for both holidays and key identifiers. Minor gaps exist, such as missing validation for Peruvian RUC or Colombian NIT, and holiday coverage is limited to four countries. However, the core workflows for the included countries are well covered.

Resources