Skip to main content
Glama
crisjonblvx

enrichrapi-mcp

by crisjonblvx

enrich_phone

Parse and validate phone numbers in any format, returning E.164 normalization, line type, country code, and carrier region with per-lookup cost.

Instructions

Parse and validate a phone number.

Normalizes to E.164 format, detects line type (mobile/landline/voip), and returns the carrier region.

Args: phone: Phone number in any format (e.g. "415-555-2671", "+44 20 7946 0958") country_hint: ISO 3166-1 alpha-2 country code to assume when no country prefix is given (default "US")

Returns: dict with keys: valid, e164, national, country_code, line_type, cost_usd

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phoneYes
country_hintNoUS

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden and does disclose the core behavior: normalizing, validating, detecting line type, and returning a structured dict. A small inconsistency exists because it says 'returns the carrier region' while the documented return keys are country_code and line_type, not an explicit carrier_region key.

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 summary is one tight sentence, followed by concise Args and Returns sections. There is no filler or repetition, and the most important information is front-loaded.

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?

Given no annotations and no output schema, the description covers purpose, parameters, and the returned dictionary well. It falls slightly short on edge-case behavior, such as exactly what happens for invalid numbers beyond a 'valid' flag, and it never fully reconciles 'carrier region' with the listed return keys.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does. It explains that phone accepts any format with illustrative examples, and country_hint is documented as an ISO 3166-1 alpha-2 code with default 'US' and the rule for when it 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 and resource: 'Parse and validate a phone number.' It then names concrete enrichments (E.164 normalization, line type detection, carrier region) that distinguish it from sibling tools like enrich_email and enrich_address.

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?

The description clearly establishes the tool's context: it is for processing phone numbers, not email addresses, IPs, or other entities. It does not explicitly name alternatives or exclusion conditions, but the purpose sentence and sibling set make when-to-use obvious.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.