Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

lookup_phone_prefix

Read-onlyIdempotent

Identify a phone number prefix's country, line type, and original network, including ambiguous candidates, or list a country's mobile prefixes by network.

Instructions

utilpeek: Look up a phone number prefix: country, line type and original network, with ambiguity. To parse a full number use parse_phone_number. Returns the country, line type, original network, time zones and E.164 form of the leading digits of a number (0917, +63917, 0063917), ambiguous with candidates when they span networks; list with region lists a country's mobile prefixes by network. Original range holder, not the current network (number portability); offline metadata; a national form without region lists candidate countries. Bad input is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/phone-number-prefix-lookup-api.html

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_phone_prefix"
  }
}

Input Schema

NameRequiredDescriptionDefault
listNoWith `region` (and no prefix): return every mobile prefix of that country at the 4-digit national level (e.g. 0905, 0917), grouped by network.
prefixNoThe leading digits of a number, in any form: 0917, 917, +63917, 0063917 or 63917 (digits with an optional leading + or 00; separators space - . ( ) are ignored). Without `region` a national form (0917) is read in every country and the reply lists the candidate `countries`. Omit with `list`.
regionNoISO 3166-1 alpha-2 country (PH, US, GB, ...): reads a national prefix and selects the country for `list`.

Output Schema

NameRequiredDescriptionDefault
noteNo
typeNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
levelNo
mixedNo
probeNo
blocksNo
detailNo
regionNo
sourceNo
carrierNo
countryNo
regionsNo
networksNo
possibleNo
ambiguityNo
ambiguousNo
countriesNo
timezonesNo
candidatesNo
other_shareNo
prefix_e164No
trunk_prefixNo
interpreted_asNo
total_prefixesNo
countries_countNo
country_calling_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: the data reflects the original range holder, not the current network (portability caveat), it is offline metadata, invalid input yields a 422 that is not charged, typical latency under 0.1s, price USD 0.001, and a 10-call/day free tier. It also states the submitted text is never logged or stored, which matters for privacy-sensitive callers.

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?

Purpose and the sibling routing come first, which is the right front-loading. The later sentences pack several distinct facts (portability, offline nature, 422 behavior, latency, price, free tier, logging policy, docs URL) into dense semicolon-separated clauses; each earns its place but the block could be broken up for faster scanning.

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?

An output schema exists, so return values need not be spelled out, and annotations cover the safety profile. The description still fills the remaining gaps an agent needs: cost, quota, latency, error semantics, the portability caveat on 'original network', and the ambiguity/list response modes.

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 description coverage is 100%, so the per-parameter text already documents the accepted formats, the ISO 3166-1 alpha-2 pattern, and the `list` grouping behavior. The description largely restates those semantics (national form without `region` yields candidate countries, `list` groups by network) rather than adding new meaning, so 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?

States a specific verb and resource (look up a phone number prefix) plus the three returned attributes (country, line type, original network), and explicitly distinguishes itself from the sibling parse_phone_number. An agent can tell which of the two tools handles a prefix vs. a full number without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: use parse_phone_number for a full number, omit `region` for a national form to get candidate countries, and use `list` with `region` to enumerate a country's mobile prefixes. It also states the accepted input forms (0917, +63917, 0063917) and the when-to-use condition for each mode.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools