Skip to main content
Glama

Parses an international phone number, checks it against

agent_intel_phone_carrier_hlr_lookup
Read-only

Parses an international phone number (E.164), checks it against Google's open libphonenumber metadata, and returns the country, line type (mobile, fixed line, fixed-or-mobile, VoIP, toll free, premium, pager and more), E.164/international/national formats and the carrier that the number range was originally allocated to. Not a live HLR query: ported numbers keep the original carrier and active/inactive status is not checked. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "number": "<number>"
    },
    "name": "agent_intel_phone_carrier_hlr_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesPhone number in international form with country code, e.g. +905321234567 or 00442079460000

Output Schema

NameRequiredDescriptionDefault
e164No
noteNo
inputNo
validNo
regionNo
sourceNo
carrierNo
formatsNo
lineTypeNo
checkedAtNo
carrierPrefixNo
nationalNumberNo
numberPortabilityNo
countryCallingCodeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only supply readOnlyHint and openWorldHint; the description adds the substantive behavior: the data is a static allocation snapshot rather than a live carrier query, portability is not reflected, and there is a metered cost of $0.002 per successful call billed via x402 with failures free. The pricing and payment-rail details are operationally critical and appear nowhere in the structured fields.

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?

Dense and front-loaded: capability first, then the limitation, then price. Every sentence carries information, though the single-paragraph form makes the pricing clause easy to skim past and it could be separated for emphasis.

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-value documentation is a bonus rather than a requirement, and the description still names the returned fields and the line-type taxonomy. Combined with the coverage limits and the payment model, 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?

With one required parameter and 100% schema description coverage, the schema already documents the E.164 requirement and supplies example formats. The description restates 'international phone number (E.164)' without adding new constraints, so the baseline of 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 chain — parses an E.164 number, checks libphonenumber metadata — and enumerates exactly what is returned (country, line type taxonomy, formats, original allocating carrier). This is unambiguous and clearly distinct from the other agent_intel tools, which cover unrelated domains.

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?

Explicitly scopes when NOT to rely on it: 'Not a live HLR query: ported numbers keep the original carrier and active/inactive status is not checked.' That exclusion tells the agent precisely which questions this tool cannot answer, which is the exact failure mode for a phone-intel tool.

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