Skip to main content
Glama

phone_parse

Parse and validate a phone number: E.164 and national format, country, calling code and line type (mobile, fixed line, toll-free). Pass a number and optional default country. Paid via x402 ($0.0033 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).

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": "phone_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesPhone number in international (+…) or national format.
defaultCountryNoISO 3166-1 alpha-2 used when the number has no country code (e.g. US, MX, ES).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the x402 payment requirement, the price and chains, that the charge applies per tools/call request, that invalid input is rejected without payment, and the 3-calls/day free-trial limit with the exact header mechanism. That covers cost, failure semantics, and rate limiting — exactly the traits annotations would otherwise supply.

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 purpose before commercial terms, and every sentence carries information. The payment clause is dense with nested parentheses (Base mainnet, Polygon, Arbitrum, Solana) which slightly impedes scanning, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no output schema, the description names the returned fields (formats, country, calling code, line type, asOf, source), which largely substitutes for a missing output schema. Only the exact response shape and error payload format remain unspecified.

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 both parameters are already fully documented with format examples. The description restates "a number and optional default country" without adding format, normalization, or edge-case semantics beyond the schema, 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 (parse and validate a phone number) and enumerates the outputs it produces: E.164 and national format, country, calling code, and line type. This is clearly distinguishable from siblings like email_check or domain_check, which validate different resources.

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?

"Pass a number and optional default country" gives clear invocation context, and the free-trial note explains how to call without payment. It stops short of explicit when-not-to-use guidance or pointing to an alternative, but for a single-purpose validator there is little ambiguity.

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