Docs/Sources/Phone Validation Grounding Data

Phone Validation Grounding Data

Validate phone numbers

OperationalCredits 10 per callp50 354msData Validation

Overview

A phone validation and phone number validator API that answers in JSON from one REST call, with a Free plan to test it before you pay. Send a number in +E.164 form on its own, or a national number with its two-letter country code. Validation runs on Google's libphonenumber numbering-plan data, so each number is checked against the real number ranges of its country rather than a generic pattern. Location, carrier and time zones come from libphonenumber's offline geocoding and carrier maps. The carrier is the operator the number range was first allocated to, so a ported number still shows its original network, and US and Canadian numbers carry no carrier data. The disposable flag checks the number against numbers published on temporary SMS-receiving sites.

Live Test Phone Validation Grounding Data Source →

The tool

Once your client is connected to the VerveContext server, this appears in its tool list as PhoneValidationGroundingData. It is read-only and open-world — it fetches and never mutates anything on your side — so most clients call it without asking you to confirm.

Tool call
{
  "name": "PhoneValidationGroundingData",
  "arguments": {
    "number": "816-555-1017"
  }
}

You do not name the tool yourself; the model picks it. Asking about 816-555-1017 in the terms this source covers is enough for it to reach for PhoneValidationGroundingData on its own — naming it explicitly also works, and is the way to force the call.

Connecting

One server URL covers every source in the catalog, including this one. Authorization is OAuth: the client opens a browser once, and there is no key to paste into a config file.

{
  "mcpServers": {
    "vervecontext": {
      "url": "https://api.vervecontext.com/v1/mcp"
    }
  }
}

Per-client setup — Claude, Cursor, VS Code, ChatGPT — is on the MCP setup page.

Arguments

These are the properties on the tool's inputSchema, so a well-behaved client validates them before the call is made. Premium arguments are accepted on every plan but only take effect on plans that include them.

ArgumentTypeDescription
numberRequiredstringThe phone number to validate
countryOptionalstringThe two-letter country code of the phone number (e.g., us, uk). Optional when the number is in international format starting with +
length 2–2

What the model gets back

The result carries a structuredContent object matching the tool's declared outputSchema, so a client reads fields without parsing prose. status is "ok" and error is null on success; a null field means the value was not available for that input, not that the call failed.

Result
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "US",
    "detectedCountry": "US",
    "countryName": "United States",
    "countrycode": 1,
    "numberNational": 8165551017,
    "extension": null,
    "isValid": true,
    "isMobile": true,
    "isVoip": false,
    "isDisposable": false,
    "type": "fixed_line_or_mobile",
    "isValidNumber": true,
    "nationalSignificantNumber": "8165551017",
    "location": "Missouri",
    "carrier": null,
    "timezones": [
      "America/Chicago"
    ],
    "formatted": {
      "international": "+1 816-555-1017",
      "national": "(816) 555-1017",
      "rfc": "tel:+1-816-555-1017",
      "e164": "+18165551017"
    },
    "riskScore": 0,
    "riskLevel": "low"
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
countrystringUSThe country code that was supplied with the request, or null when none was sent
detectedCountrystringUSThe ISO country code detected from the number
countryNamestringUnited StatesFull name of the detected country
countrycodenumber1The international dialing/country calling code
numberNationalnumber8165551017The national (significant) number without the country code
extensionobjectnullThe phone extension if present, otherwise null
isValidbooleantrueWhether the number is valid for the given country/region
isMobilebooleantrueWhether the number is a mobile phone
isVoipbooleanfalseWhether the number is a VOIP line (common in fraud)
isDisposablebooleanfalseWhether the number is a known disposable/virtual number
typestringfixed_line_or_mobileLine type: fixed_line, mobile, fixed_line_or_mobile, toll_free, premium_rate, shared_cost, voip, personal_number, pager, uan, or unknown
isValidNumberbooleantrueWhether the number is valid in its own detected country, regardless of the country supplied (a valid UK number sent with country=us is true here and false in isValid)
nationalSignificantNumberstring8165551017The national significant number as a digit string, keeping any leading zero (e.g. Italian 06 numbers)
locationstringMissouriCity or region the number range is assigned to, from libphonenumber's geocoding data; null for mobile, toll-free and other non-geographic numbers, or where no area data exists
carrierobjectnullCarrier the mobile number range was originally allocated to, from libphonenumber's carrier data. A ported number still shows the original carrier. Null for fixed lines and where no data exists, including US and Canadian numbers
timezonesarray["America/Chicago"]IANA time zones the number may be in (one for most geographic numbers, the country's full list for mobile and toll-free numbers); null for invalid numbers
formattedobject{…}The number formatted as international, national, RFC3966 and E.164
formatted.internationalstring+1 816-555-1017The number in international format
formatted.nationalstring(816) 555-1017The number in national format
formatted.rfcstringtel:+1-816-555-1017The number in RFC3966 format
formatted.e164string+18165551017The number in E.164 format
riskScorePremiumnumber0Composite 0-100 risk score combining validity, disposable, VOIP and line-type signals (higher is riskier)
riskLevelPremiumstringlowRisk band derived from the score: low, medium or high

Why ground on it

A model can produce something that looks like this answer from its training data, and be confidently out of date or simply wrong. This source returns the current value in a shape you can check, which is the difference between an answer you can cite and one you have to hedge.

Point an evaluation at detectedCountry: it is the field most worth pinning a claim to, and it is either present and current or absent — never plausibly invented.

Failure modes

Errors come back as tool errors carrying a sentence the model can act on, not a bare status code. Error handling covers the full list.

StatusWhat it means
400 / 422The arguments did not validate. The message names the offending one.
401The OAuth session is invalid or expired — reconnect the server.
403Blocked by a key restriction or an IP allow-list. Never a bad identity.
404This source is not part of VerveContext. Check the catalog.
429Out of credits, or a brief rate limit. The message tells them apart.

A call costs 10 credits each time the tool actually runs; a model that reasons about the tool without calling it costs nothing.

Use cases

Account Signup Verification
When users register, check validity and flag disposable or VoIP lines before sending one-time verification SMS codes.
CRM Lead Scrubbing
Sales platforms inspect incoming prospect numbers and standardize them into E.164 format to keep contact records clean and dialable.
Outbound SMS Routing
To prevent wasted spend on unroutable text messages, delivery systems verify that recipient numbers are mobile lines rather than landlines.
Checkout Risk Screening
Payment gateways identify virtual and disposable phone numbers during checkout to detect suspicious buyer profiles before processing charges.
Contact Time Windows
Contact centers read the returned time zone and area so calls and texts go out during the recipient's local business hours.

Other ways to use Phone Validation Grounding Data

Set up Phone Validation Grounding Data on VerveContext, or reach the same source a different way. Your VerveContext account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →

More in Data Validation:

Was this page helpful?