Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

parse_phone_number

Read-onlyIdempotent

Parse and format phone numbers, validate them against national numbering plans, and use an ISO region for national-form input.

Instructions

utilpeek: parse and format a phone number. For a prefix's country and network use lookup_phone_prefix. A string that is not a phone number, or a national form without region, is a 422 (not charged). Offline numbering-plan check (phonenumbers, Apache-2.0): valid means the number fits its country's numbering plan, not that it is assigned, in service or reachable; carrier is the original range holder (ported numbers are not detected). The submitted value is processed in memory only, never logged or stored. Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/phone-number-validation-api.html

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

Input Schema

NameRequiredDescriptionDefault
numberYesPhone number: +CC international form, or national form with region.
regionNoISO 3166-1 alpha-2 region for a national-form number (e.g. US).

Output Schema

NameRequiredDescriptionDefault
e164No
noteNo
typeNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
validNo
regionNo
sourceNo
carrierNo
rfc3966No
locationNo
nationalNo
possibleNo
extensionNo
timezonesNo
internationalNo
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 cover the safety profile (readOnly, idempotent, non-destructive), and the description layers on substantive behavior: the check is offline against numbering plans, `valid` does not mean assigned/in-service/reachable, and `carrier` reflects the original range holder so ports are missed. It also discloses in-memory-only processing, no logging, latency, price, and the free-tier quota.

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 lead the text, followed by error semantics and caveats. It is dense but each clause carries information; the cost and docs tail are useful for agent budgeting, though the run-on paragraph could be broken into shorter statements.

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 shape needn't be explained, and the description still defines the semantics of the key fields (`valid`, `carrier`) that an agent would otherwise misread. Combined with error, cost, and privacy context, nothing needed to invoke or interpret the tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3. The description adds real meaning beyond the schema by stating that a national form without a region is a 422, which explains why region exists and when it becomes mandatory.

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 format a phone number") and immediately distinguishes itself from lookup_phone_prefix, which handles prefix country/network data. An agent can tell which of the two phone-related tools to pick 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 Guidelines4/5

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

Gives an explicit alternative and the condition selecting it ("For a prefix's country and network use lookup_phone_prefix"), plus the input condition that triggers a 422. It does not enumerate other exclusions, but the routing guidance is concrete rather than implied.

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