Skip to main content
Glama
devkit-mcp

devkit-mcp

by RaihNoDev2

format_document

Read-onlyIdempotent

Formats Brazilian CPF, CNPJ, CEP, and phone numbers, automatically detecting the document type by digit count when no type is specified.

Instructions

Formata um CPF, CNPJ, CEP ou telefone brasileiro. Se o tipo não for informado, detecta pelo número de dígitos.

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": {
      "value": "<value>"
    },
    "name": "format_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoTipo do documento (opcional).
valueYesDocumento a formatar.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds one genuinely useful behavioral fact — that omitting type triggers digit-count auto-detection — but says nothing about behavior on malformed input (wrong digit count, non-numeric characters) or the shape of the returned string.

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 zero filler, and the auto-detection behavior is placed immediately after the core purpose so the most decision-relevant fact is front-loaded.

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

Completeness4/5

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

For a simple, pure, closed-world string formatter with full schema coverage and complete annotations and no output schema, the definition covers what is needed to invoke it correctly. The only real omission is error behavior for invalid or ambiguous inputs, which is a minor gap at this complexity.

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?

Schema coverage is 100% and the enum already documents the four allowed type values, so the baseline would be 3. The description goes beyond the schema by explaining the fallback rule when type is omitted (detection by digit count), which is real semantic value an agent cannot read off the schema.

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 states a specific verb ("Formata") and enumerates the exact resource set (CPF, CNPJ, CEP, telefone brasileiro), so an agent knows precisely what transformation this tool performs. It does not name or differentiate itself from the closest sibling, validate_document, though the verb 'format' versus 'validate' implies the distinction.

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 only implied: the agent can infer this is for producing a formatted string rather than checking validity, but there is no explicit statement about when to use this over validate_document or what to do if the input is not a valid document. No exclusions or prerequisites are given.

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