Skip to main content
Glama

Validar teléfono E.164

phone-e164-validate
Read-onlyIdempotent

Normaliza un teléfono a E.164 e identifica el código de país. Solo sintaxis: no verifica que el número exista. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: verificar la SINTAXIS de un teléfono colombiano (co-phone-validate). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Normalizes a phone number to E.164 (+ and 8-15 digits) and identifies the country calling code from a built-in table. Syntax only: it does not check that the number is assigned or reachable. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
phoneYesPhone number, with + or 00 international prefix (string; required; up to 64 chars).
default_country_codeNoCalling code to assume when no + is given, e.g. 57 (string; optional; pattern ^\d{1,3}$).

Output Schema

NameRequiredDescriptionDefault
e164No
validNo
reasonNo
countryNo
country_codeNo
national_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / phone / examples
      Added value: +[
      +  "+57 (300) 123-4567"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Normalizes a phone number to E.164 (+ and 8-15 digits) and identifies the country calling code from a built-in table. Syntax only: it does not check that the number is assigned or reachable. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: checking the SYNTAX of a Colombian phone number (co-phone-validate). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real value beyond them: it states the tool is syntax-only and does not verify the number is assigned or reachable, declares determinism, and gives operational limits (64 KB input, 1 s per call, 1 MB result). That is exactly the extra context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The core is front-loaded and tight, but the 'Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, un rango de IP...' sentence is pure noise transplanted from an unrelated tool, and it is duplicated in the English half. A substantial share of the text does not earn its place and adds confusion.

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?

With an output schema present and rich annotations, the description need not explain return values, and it correctly covers syntax-only scope, determinism and resource limits. However, the misleading 'when to use' clause leaves the agent with an inaccurate usage signal, which is the one completeness failure that matters for tool selection.

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 description coverage is 100% and both parameters (phone, default_country_code) are documented in the schema itself, so the baseline is 3. The description contributes the E.164 output shape (leading '+' and 8-15 digits), which slightly clarifies what 'phone' should look like, but it never explains how default_country_code interacts with a '+' prefix — the one semantic gap the schema leaves open.

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 opening sentence gives a specific verb and resource — normalize a phone number to E.164 and identify the calling code — and the 'Solo sintaxis' clause sharply bounds what the tool does. It also names the sibling it is not (co-phone-validate), so it is distinguishable. The score is capped because the following 'Cuándo' sentence describes URLs, HTTP headers, tokens and IP ranges, which has nothing to do with this tool and muddies the purpose statement.

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 a concrete exclusion, 'No para: verificar la SINTAXIS de un teléfono colombiano (co-phone-validate)', which routes the agent to the right sibling. But the positive 'when to use' condition is copy-pasted boilerplate about parsing URLs, tokens, IP ranges and Markdown files — actively misleading for a phone normalizer. Useful guidance exists, but only in the negative form.

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.

Resources