Skip to main content
Glama

Analizar teléfono de LatAm, EE. UU. o España

phone-parse
Read-onlyIdempotent

Analiza un teléfono de CO, MX, BR, AR, CL, PE, EC, EE. UU. o España: país, tipo cuando el plan lo indica (móvil, fijo, gratuito…), E.164 y formatos nacional e internacional. Solo sintaxis. Cuándo: hay que verificar sin conexión el formato y el dígito de control de un identificador antes de usarlo. No para: normalizar un teléfono a E.164 e identifica el código de país (phone-e164-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: Parses a phone number of Colombia, Mexico, Brazil, Argentina, Chile, Peru, Ecuador, the US (NANP) or Spain into country, type when the numbering plan tells it (mobile, fixed, toll-free…), E.164 and national and international formats. Syntax only; it does not check the line exists. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
numberYesPhone number, with + and country code or national (string; required; up to 40 chars).
default_countryNoCountry for national numbers (optional; one of: CO, MX, BR, AR, CL, PE, EC, US, ES).

Output Schema

NameRequiredDescriptionDefault
e164No
noteNo
typeNo
validNo
errorsNo
regionNo
sourceNo
countryNo
warningsNo
area_codeNo
country_codeNo
national_formatNo
national_numberNo
international_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / number / examples
      Added value: +[
      +  "+57 300 123 4567"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered, and the description partially repeats that with 'sin red, sin estado guardado'. However it adds genuinely new operational context: determinism guarantee and hard limits (64 KB input, 1 s per call, 1 MB result) that annotations do not carry, which is real value beyond structured fields.

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?

Content is well front-loaded with labeled sections (Cuándo / No para / Efectos / Límites) that make scanning easy. It is somewhat long because it duplicates the whole body in Spanish and English, which costs a bit of conciseness without adding information.

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?

An output schema exists, so return values need not be explained, and the description still covers purpose, routing, side effects, determinism and execution limits. Nothing an agent needs to invoke it correctly is missing.

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 the enum plus an example are already in the schema, so the schema does the heavy lifting. The description only mentions the general purpose of the two fields rather than adding format syntax or edge-case meaning, matching the baseline of 3.

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 (analiza/parses) plus the resource (phone number) and enumerates the exact country scope (CO, MX, BR, AR, CL, PE, EC, US, ES) and the outputs produced (country, type, E.164, national/international formats). It also names the sibling it is not (phone-e164-validate), so an agent can distinguish it without opening either schema.

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

Usage Guidelines5/5

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

Explicit 'Cuándo:' clause tells the agent when to use it (offline verification of format and check digit before use) and the 'No para:' clause names the alternative tool for normalization (phone-e164-validate). This is explicit when/when-not/alternative guidance.

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