Skip to main content
Glama

Limpar telefone

clean_phone
Read-onlyIdempotent

Fix the format of Brazilian business phone numbers the user already has (a company's or a contact's, e.g. from a sheet) for free: puts them as (DD) NNNNN-NNNN, adds the missing ninth digit of a mobile, and marks a number that cannot exist (an unknown area code, too short). kind is mobile or landline. Up to 500 numbers per call. Formatting only: nothing is looked up outside, and no owner, name or other data comes back.

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": {
      "numbers": "<numbers>"
    },
    "name": "clean_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
numbersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/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 earns credit for the extras: a hard batch limit of 500, the exact normalization behavior, marking of impossible numbers, and an explicit statement that no owner or other data is returned. The one gap is it doesn't say what the returned structure looks like (e.g. how a 'marked' invalid number appears), which matters since 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then constraints, then the exclusion. Dense but every clause carries information; the final 'Formatting only' sentence slightly restates 'nothing is looked up outside' but is worth keeping as an explicit boundary against owner-lookup siblings.

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 one-parameter, single-purpose utility with fully populated safety annotations, the description covers scope, limits, behavior and exclusions well. The only meaningful missing piece is the shape of the result (how formatted vs. invalid numbers are reported), which nothing else in the definition supplies.

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?

With 0% schema description coverage, the description must compensate and does partially: it establishes that the single parameter is a batch of numbers with a 500-per-call ceiling, which mirrors the array constraint. It never states whether inputs may arrive with punctuation, +55 country codes, or mixed formats, nor what a single array element should look like, so item-level semantics remain underspecified.

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?

States a specific verb+resource (fix/format Brazilian business phone numbers) and enumerates the transformations: standardizing to (DD) NNNNN-NNNN, inserting the missing ninth mobile digit, and flagging impossible numbers. The phrase 'the user already has ... for free' plus 'nothing is looked up outside' clearly separates it from the sibling phone_owner, which implies a lookup.

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

Usage Guidelines4/5

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

Clearly says the input is numbers the user already possesses ('e.g. from a sheet') and that it is formatting-only, which implicitly excludes it from owner/lookup tasks. It doesn't explicitly name an alternative tool for lookups, so an agent must infer that a separate tool handles discovery, but the context is unambiguous.

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.