Skip to main content
Glama

Phone Number Lookup

phone_lookup
Read-onlyIdempotent

A phone number, with its country code (+1 202 555 0143; ten digits are read as North American). Answers number (valid, country, national and international format, line type where the country publishes it), and for North America areaCode, exchange, block and carrier (the carrier the block was ASSIGNED to by NANPA, with a landline/wireless/voip guess from its name; ports are not public), reports.fcc (unwanted-call complaints naming it as caller or call-back number: count, types, recent) and reports.sms (the smshub.dev SMS blacklist), and businesses that publish it. Never the owner of a personal line.

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

Input Schema

NameRequiredDescriptionDefault
numberYesA phone number with country code, e.g. +1 202 555 0143

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world; the description adds substantial context beyond them: data availability varies by country ('line type where the country publishes it'), carrier is the assignment not the ported carrier ('ports are not public'), the landline/wireless/voip value is a name-based guess, and the explicit privacy limit on personal-line ownership. That is exactly the kind of caveat an agent needs to avoid misreporting results.

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?

It is a single dense sentence with no filler; every clause (formats, areaCode/exchange/block, carrier caveat, reports.fcc, reports.sms, businesses, privacy limit) carries information. It is slightly over-packed and front-loads the input rather than the purpose, and the ALL-CAPS 'ASSIGNED' emphasis is a minor style blemish.

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?

There is no output schema, so the description must carry the return-value burden, and it does: it names each returned field group, its content, and its reliability caveats. For a one-parameter read-only lookup, an agent has everything needed to call it and interpret the response.

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 100% for the single `number` parameter, so baseline would be 3. The description earns more by adding a parsing rule not in the schema: ten-digit inputs are interpreted as North American, and a country code is expected. That is genuine semantic value about how the input is read.

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 the resource (a phone number with country code) and enumerates what the lookup returns (validity, country, formats, line type, NANPA block data, FCC complaints, SMS blacklist, businesses). It is clearly a phone-number enrichment tool and distinguishable from siblings like reputation_lookup or business_standing, though it opens with the input rather than a verb, so the action itself ('looks up') is implied rather than stated.

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 enumerated return fields, and one boundary is explicit: 'Never the owner of a personal line.' However, there is no statement of when to prefer this over reputation_lookup or business_standing, and no prerequisites (e.g., country code required) framed as guidance rather than schema.

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.