Skip to main content
Glama

1Lookup

Validate phone number

validate_phone
Read-onlyIdempotent

Validate a phone number: checks whether it is real and active, and returns line type, carrier, Do Not Call status, and a risk level. Spends 1 credit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phoneYesPhone number in E.164 or national format
countryNoOptional ISO country code, e.g. US

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYesWhat was looked up
insightsNoThe detailed findings, grouped by theme
metadataNoWhat the call cost
classificationNoCategorical verdicts, e.g. line type or deliverability status
recommendationsNoSuggested action, with a plain-language summary
risk_assessmentNoFraud and risk scoring for this value

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedOutput schema / properties / metadata / description
      Previous value: -"Call metadata, including credit cost"New value: +"What the call cost"
    • removedOutput schema / properties / metadata / properties / cache_hit
      Removed value: -{
      -  "description": "True when served from a recent identical lookup",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / request / description
      Previous value: -"What was looked up, and when"New value: +"What was looked up"
    • removedOutput schema / properties / request / properties / id
      Removed value: -{
      -  "description": "Unique id for this lookup",
      -  "type": "string"
      -}
    • removedOutput schema / properties / request / properties / timestamp
      Removed value: -{
      -  "description": "ISO 8601 time the lookup ran",
      -  "type": "string"
      -}
    • changedOutput schema / properties / request / required
      Previous value: -[
      -  "id",
      -  "type",
      -  "input",
      -  "timestamp"
      -]New value: +[
      +  "type",
      +  "input"
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety bar is low. The description adds genuinely new behavioral context by disclosing cost ('Spends 1 credit'), which an agent needs to decide whether to call this versus a bulk path, though it says nothing about rate limits or auth.

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 covers purpose and output, followed by a three-word cost disclosure. No filler, no restatement of the title, and the most decision-relevant facts come first.

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 an output schema present, the description needn't explain return values, and annotations cover the safety profile; the credit cost is the key missing-in-annotations detail and it is present. The only gap is the lack of routing guidance against bulk_verify.

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% with only two well-documented parameters, so the schema carries the parameter semantics. The description adds no format guidance (e.g. accepted national formats) beyond what E.164/national and the ISO country example already provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Validate a phone number') and enumerates what the validation covers: real/active status, line type, carrier, DNC status, and risk level. It does not differentiate itself from the sibling bulk_verify, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no mention of alternatives such as bulk_verify for multiple numbers. The only implicit signal is the singular 'a phone number', which an agent must infer means one-at-a-time use.

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