Skip to main content
Glama

telcodata

list_ocn_prefixes

List NPA-NXX prefixes assigned to an Operating Company Number (OCN). Use when the user asks where a carrier operates, what prefixes belong to a carrier, or wants to pivot from an OCN profile into numbering footprint. Combine with get_ocn_profile for carrier identity fields. TelcoData fields commonly include npa, exchange/NXX, thousands, state, country, ratecenter, company, ocn, lata, switch CLLI, and tandem CLLI. A thousands value of -1 represents the whole prefix/default aggregate; 0-9 are individual thousand-number pooling blocks.

Input Schema

NameRequiredDescriptionDefault
ocnYes4-character alphanumeric Operating Company Number.
api_keyNoTelcoData API key. Optional if TELCODATA_MCP_API_KEY is set or the HTTP MCP request provides Authorization/X-API-Key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it delivers real behavioral content beyond the signature: the returned TelcoData field set and, importantly, the encoding rule that thousands=-1 means the whole prefix/default aggregate while 0-9 are individual pooling blocks. It omits pagination, result caps, and rate-limit behavior, which matter for a potentially large prefix dump.

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?

Front-loaded with purpose, then usage triggers, then data-shape notes — the right order. The field enumeration ('npa, exchange/NXX, thousands, state, ...') is a long clause, but it substitutes for a missing output schema, so it mostly earns its place.

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 no output schema, the description fills the gap by naming the returned fields and explaining the thousands encoding, and it points at get_ocn_profile for identity fields. It leaves volume, pagination, and empty-result behavior unspecified, which is the remaining gap for a listing tool.

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 coverage is 100% — both ocn (with its 4-character pattern) and api_key are fully documented in the schema. The description adds no format or resolution guidance for ocn (e.g., how to obtain one) and its field/thousands detail describes output rather than inputs, 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 and resource — 'List NPA-NXX prefixes assigned to an Operating Company Number (OCN)' — with explicit scoping that separates it from the LATA- and tandem-scoped siblings (list_lata_prefixes, list_tandem_prefixes). An agent can tell which prefix listing to pick from the description alone.

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?

Gives concrete trigger scenarios ('where a carrier operates', 'what prefixes belong to a carrier', 'pivot from an OCN profile into numbering footprint') and names the companion call get_ocn_profile. It stops short of exclusions — it never says to use list_lata_prefixes or list_tandem_prefixes when the user is starting from a LATA or switch instead.

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