Utilities
Data source: Curated dataset (ITU numbering plans)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/phone-validation/
claude_desktop_config.json
{
"mcpServers": {
"gnist-phone-validation": {
"url": "https://context.gnist.ai/mcp/phone-validation/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/phone-validation/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "validate_phone_number", "arguments": {"number": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/phone-validation/
5 endpoints available:
GET /rest/phone-validation/validate_phone_numberGET /rest/phone-validation/format_phone_numberGET /rest/phone-validation/list_calling_codesGET /rest/phone-validation/get_calling_codeGET /rest/phone-validation/report_feedback
Shell
curl "https://context.gnist.ai/rest/phone-validation/validate_phone_number?number=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/phone-validation/validate_phone_number",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"number": "example"
},
)
print(resp.json())
Command Line
Command
gc phone-validation
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
validate_phone_numberValidate and parse a phone number.
| Parameter | Type | Required | Description |
|---|---|---|---|
number | string | required | Phone number to validate (E.164, international, or national format, e.g. +14155551234, 00441234567890). |
format_phone_numberFormat a phone number in the specified style.
| Parameter | Type | Required | Description |
|---|---|---|---|
number | string | required | Phone number to format. |
fmt | string | optional | Output format: e164, international, or national. (default: "e164") |
list_calling_codesList all known country calling codes with metadata.
get_calling_codeGet calling code details for a specific country.
| Parameter | Type | Required | Description |
|---|---|---|---|
country_code | string | required | ISO 3166-1 alpha-2 country code (e.g. US, GB, NO, DE). |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |