Skip to main content
Glama

cpf_validate

Validate Brazilian CPF numbers with the mod-11 checksum algorithm, returning validation status, formatted CPF, and fiscal region of origin for identity and compliance checks.

Instructions

Validate a Brazilian CPF number using the mod-11 checksum algorithm. Returns validation status, formatted CPF, and fiscal region of origin. No API key required. Local computation only.

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": "cpf_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
cpfYesCPF number (with or without formatting)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses "No API key required. Local computation only," which tells the agent there is no auth step and no network side effects. It also pre-announces the return payload (status, formatted CPF, fiscal region), though it doesn't state what happens for a malformed-but-parseable input versus a valid-format-invalid-checksum input.

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?

Four short sentences: the operation and algorithm come first, then the return shape, then the auth/hosting facts. Nothing is repeated and nothing is padding.

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 single-parameter, deterministic validation tool with no output schema, the description supplies everything needed: the algorithm, the input flexibility, the return fields, and the fact that no key or network access is involved.

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?

There is a single parameter with 100% schema description coverage ("CPF number (with or without formatting)"), so the schema already does the work. The description adds no further constraint on the parameter, which is the baseline-3 case.

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?

"Validate a Brazilian CPF number using the mod-11 checksum algorithm" gives a specific verb, a specific resource, and even the underlying method. The CPF resource is unique among the listed siblings, so an agent can tell it apart without opening any schema.

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?

Usage is implied rather than stated: the tool validates CPFs, so an agent can infer when to call it. There is no explicit when-not guidance or named alternative (e.g., a generation or formatting-only tool) to route against.

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