Skip to main content
Glama

Validate a CPF offline

validate_cpf
Read-onlyIdempotent

Checks CPF format and check digits offline, helping verify a Brazilian tax ID without network calls or storing the number.

Instructions

Checks the format and the check digits of a CPF without any network call. The number is not stored or sent anywhere.

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, for example "529.982.247-25"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety and determinism are covered. The description still adds a real behavioral fact beyond them, that the number is neither stored nor transmitted, which matters for privacy-sensitive callers. It does not, however, describe the shape of the result.

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 offline/no-network constraint is stated up front where an agent will read it before deciding to call.

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?

There is no output schema, so the description is the only place a caller could learn what validation returns (a boolean, a structured error, a normalized value), and it omits that entirely. Otherwise the definition is adequate for a one-parameter read-only tool.

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, including a formatted example, so the schema carries the semantics. The description adds no new detail about accepted formats (with or without punctuation, whitespace, length), so the baseline of 3 applies.

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 names a specific verb and resource: it checks the format and check digits of a CPF. It also distinguishes the operation as offline, which separates it from lookup-style siblings, though it never names validate_cnpj or any other alternative directly.

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: an agent can infer this is the tool for validating a CPF value locally. There is no explicit when-to-use/when-not guidance, no note about pairing it with a lookup tool, and no explanation of what to expect when the CPF is invalid.

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