Skip to main content
Glama

Phone Number Validator API - format, country and line type for 240 countries

phone_number_validator
Read-onlyIdempotent

Check and clean phone numbers before you save, call or send SMS: is the number valid for its country, the E.164, international and national format, country, line type (mobile, fixed line, toll free, VoIP), area and time zone. One number or a list of up to 200. Works from the public numbering plans, runs on our server in milliseconds. It does not look up who owns a number. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/phone-number-validator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "phone": "+44 20 7946 0958"
    },
    "name": "phone_number_validator"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneNoOne phone number, e.g. +359 88 123 4567
phonesNoOr a list of up to 200 numbers
defaultCountryNoCountry for numbers written without +code, ISO alpha-2, e.g. BG, DE, US

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses data provenance (public numbering plans), server-side execution speed, an explicit limitation (no owner lookup), the free tier cap of 5 calls/day per IP, and both auth mechanisms (X-API-Key via a paid Radar key, or $0.001/call via x402). These are exactly the operational facts an agent needs before calling, and none are visible in readOnlyHint/idempotentHint.

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 capability and output set, then limits, then access/pricing — a sensible order with no filler sentences. Slightly dense with pricing URLs and a mild marketing phrase ('in milliseconds'), but each clause carries functional 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?

There is no output schema, and the description compensates by enumerating the returned fields in prose. Combined with the batch limit, auth/pricing details, and the explicit exclusion of owner lookup, an agent has everything needed to decide and call correctly.

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 coverage is 100%, so all three parameters are already documented, including defaultCountry's ISO alpha-2 semantics. The description reinforces the 'one number or a list of up to 200' choice and the interplay with numbers lacking a +code prefix, but adds little beyond the schema text — the baseline 3 applies.

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?

Names a specific verb and resource (validate and normalize phone numbers) and enumerates exactly what is returned: validity, E.164/international/national formats, country, line type, area, time zone. It also states a negative scope ('does not look up who owns a number'), which cleanly separates it from any carrier-lookup or people-search tool and from siblings like email_validator or iban_validator.

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?

Gives explicit usage contexts — before saving, calling, or sending SMS — plus the batch limit of 200 and the free/paid access paths. It does not name an alternative tool or state when not to use it, so it stops short of full routing 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