Skip to main content
Glama

Validate and format a phone number (offline)

parse_phone_number
Read-onlyIdempotent

Validate one phone number offline against libphonenumber metadata and return E.164, international, national and RFC 3966 formats, region, calling code and line type (from the original allocation). Valid means the number fits an allocated range, not that the line is connected or reachable; no carrier/HLR lookup. Read-only. Same engine, keys and limits as POST /v1/parse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYesThe phone number, e.g. "+44 20 7946 0018" or "(213) 373-4253". Max 64 characters.
default_countryNoOptional ISO 3166-1 alpha-2 region used when the number has no +country code, e.g. US, GB.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
e164No
inputNo
validYes
reasonNo
countryNo
messageNo
rfc3966No
nationalNo
possibleNo
extensionNo
line_typeNo
calling_codeNo
country_nameNo
internationalNo
non_geographicNo
default_countryNo
national_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources