Skip to main content
Glama

ID & Format Oracle

Validate and format a phone number

validate_phone
Read-onlyIdempotent

Parse a phone number for any country, say whether it is valid (matches a national numbering-plan pattern) or merely possible, and return E.164, international and national formats, number type (mobile/fixed_line/toll_free…), region, location, original carrier hint and time zones. Example: number '050 123 4567', default_region 'AE'. Response: result plus data_confidence (high = check-digit algorithm from a public specification; medium = community-documented checksum or pattern-only; low = structure only), estimated_items[], sources[], data_version and a disclaimer (structural validation only — never proof that an identifier is issued or belongs to someone).

Input Schema

NameRequiredDescriptionDefault
numberYesPhone number as written; international form '+971 50 123 4567' needs no region.
languageNoLanguage for location/carrier names, e.g. 'en', 'ar'.en
default_regionNoISO 3166-1 alpha-2 region used to interpret numbers written without '+', e.g. 'AE'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The description adds tremendous value beyond annotations. It defines the three tiers of data confidence (high/medium/low) and provides a critical disclaimer, clarifying that the validation is 'structural' and not proof of active issuance.

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?

The description is dense with technical information (e.g., data_version, sources[], time zones), which necessitates a longer format. However, every sentence provides essential technical context rather than repetition.

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?

Given the complexity of international telecommunications and identification, the description is complete. It fully outlines the various output formats, derived metadata, and the limitations of the validation.

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?

While the schema coverage is 100%, the description enhances the input semantics by advising when the 'default_region' parameter can be omitted (i.e., when the international format is provided).

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?

The description clearly specifies the function: parsing, validating, and formatting phone numbers. By using this specific functionality, it clearly distinguishes itself from the sibling validation tools (e.g., validate_bic, validate_iban).

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?

It provides an explicit example of input format (number '050 123 4567', default_region 'AE'), guiding users on when certain parameters are necessary. The focus on phone numbers versus other identifiers makes usage context clear.

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