Skip to main content
Glama

Kempt Horizon Data Toolkit

Parse phone number

parse_phone
Read-only

Parse/validate a phone number and return E.164, national/international formats, country and line type.

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

Input Schema

NameRequiredDescriptionDefault
phoneYesPhone number in any format
defaultCountryNoISO 3166-1 alpha-2 country used when the number has no +country code, e.g. US

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully lists the returned fields, but it never says what happens on an invalid or unparseable number (error vs. null result), which is the key behavioral question for a validate tool.

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?

A single front-loaded sentence with no filler; the output fields are packed in efficiently without repetition of the schema.

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?

With only two fully documented parameters, annotations covering safety, and no output schema, the description's enumeration of returned formats makes it nearly complete. The one missing piece is failure/invalid-input behavior.

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, including the ISO 3166-1 alpha-2 fallback semantics. The description adds nothing about parameters beyond what the schema provides, 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 pair (parse/validate) and resource (phone number), and enumerates the output values returned (E.164, national/international formats, country, line type). This clearly separates it from siblings like validate_email and validate_emails by resource domain.

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

Usage Guidelines3/5

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

Usage is implied by the parse/validate verb, but there is no explicit guidance on when to choose this over format validation done elsewhere, no note on prerequisites, and no mention of when defaultCountry matters or is required. The agent must infer the calling context.

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