Skip to main content
Glama

Phone Validate

phone_validate
Read-onlyIdempotent

Validate and format a phone number with Google's libphonenumber metadata: valid/possible for its region, E.164, international and national formats, tel: URI, country, and line type (MOBILE, FIXED_LINE, TOLL_FREE, VOIP, …). Pass defaultCountry for numbers written without a +country code. Offline metadata check — it does not dial or confirm the line is in service. Companion to email_address_validate.

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": {
      "phone": "<phone>"
    },
    "name": "phone_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneYesPhone number in any common format, e.g. +1 650-253-0000 or (650) 253-0000
defaultCountryNoISO 3166-1 alpha-2 country to assume when the number has no + prefix, e.g. US, GB, DE

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds behavior the annotations cannot express: validation is an offline libphonenumber metadata check that neither dials nor confirms service status, and it previews the returned fields in the absence of an output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and output list are front-loaded in the first sentence, followed by two short, purposeful clarifications (defaultCountry rule, offline limitation) and a routing note. No sentence is redundant.

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?

For a two-parameter, read-only tool with no output schema, the description supplies what is missing elsewhere: the list of values returned, the offline/non-dialing caveat, and how defaultCountry should be applied. An agent has everything needed to call it correctly and interpret the result.

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 documented in the schema, and the description's note about defaultCountry largely restates the schema's "assume when the number has no + prefix" wording. It adds no extra syntax or edge-case detail beyond the structured field, 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?

The description opens with a specific verb+resource ("Validate and format a phone number") and then enumerates the concrete outputs (E.164, international/national formats, tel: URI, country, line type), which clearly distinguishes it from generic validators in the sibling list such as vat_validate or address_normalize.

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?

It gives a concrete usage rule ("Pass defaultCountry for numbers written without a +country code") and a scope boundary ("does not dial or confirm the line is in service"), which tells an agent when this tool is insufficient. It stops short of naming an alternative for line-in-service verification, so it is clear context rather than full when/when-not routing.

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.