Skip to main content
Glama

Validate CPF

validate_cpf
Read-onlyIdempotent

Verifies a Brazilian CPF's check digits and formats masked or digit-only input offline, without querying any registry.

Instructions

Check a CPF's check digits and format it. Offline; does not query any registry.

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": {
      "cpf": "<cpf>"
    },
    "name": "validate_cpf"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpfYesCPF, masked or digits only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the description's 'offline; does not query any registry' reinforces rather than reveals. It does add useful confirmation that no network call, credentials, or rate limits are involved. The key unstated behavior is what happens on an invalid CPF — a false/boolean result versus an error — which matters because there is no output schema.

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?

Two short sentences with no filler, and the core action is front-loaded before the offline qualifier. Every clause carries information.

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

Completeness3/5

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

For a single-parameter, well-annotated validator this is nearly sufficient, but with no output schema the description should state the return shape (boolean verdict, formatted string, or error on invalid input). That omission is the one material gap for an agent deciding how to consume 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 coverage is 100% and the single parameter already documents 'masked or digits only'. The description's mention of formatting hints at accepted input forms but adds no syntax, normalization, or edge-case detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: checking a CPF's check digits, plus a formatting side-effect. It is clearly distinct from the sibling tools by subject matter (CPF vs CNPJ, CEP, boleto, NFe key), though it never names or contrasts them. The trailing 'and format it' is slightly ambiguous about whether formatting is an output or an accepted input form.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not statement, but 'Offline; does not query any registry' implicitly routes the agent here when a local validity check suffices instead of a registry-backed lookup. The contrast with registry-based siblings is left for the agent to infer rather than stated.

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