Skip to main content
Glama

Area code and carrier directory

area_code_lookup
Read-only

Reference data for an area code or NPA-NXX prefix: region, carrier, and line type. Free.

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": {
      "areaCode": "<areaCode>"
    },
    "name": "area_code_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoRendering of the human-readable text channel. "prose" (default) is the full result as a formatted document, every field included; "json" repeats the data verbatim; "report" is a formatted Markdown report to show a person; "html" is a standalone HTML document for saving, printing or PDF. Machine-readable structuredContent is always included either way.
areaCodeYesThree-digit NANP area code, e.g. "661".

Output Schema

NameRequiredDescriptionDefault
dataYes
displayNo
apiVersionYes
disclaimerYes
limitNoticeNo
balanceNoticeNo
suggestedNextNo
criminalCaveatNo
notConsumerReportYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / limitNotice
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "code": {
      +      "const": "approaching_daily_limit",
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "usage": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "criminalSameSubjectPerDay": {
      +          "type": "number"
      +        },
      +        "distinctSubjectsPerDay": {
      +          "type": "number"
      +        },
      +        "distinctSubjectsUsed": {
      +          "type": "number"
      +        },
      +        "resetAt": {
      +          "type": "string"
      +        },
      +        "sameSubjectPerDay": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "distinctSubjectsUsed",
      +        "distinctSubjectsPerDay",
      +        "sameSubjectPerDay",
      +        "criminalSameSubjectPerDay",
      +        "resetAt"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "usage",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / display
      Added value: +{
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / format / description
      Previous value: -"Rendering of the human-readable text channel. \"prose\" (default) is a compact summary an agent can reason over; \"json\" repeats the data verbatim; \"report\" is a formatted Markdown report to show a person; \"html\" is a standalone HTML document for saving, printing or PDF. Machine-readable structuredContent is always included either way."New value: +"Rendering of the human-readable text channel. \"prose\" (default) is the full result as a formatted document, every field included; \"json\" repeats the data verbatim; \"report\" is a formatted Markdown report to show a person; \"html\" is a standalone HTML document for saving, printing or PDF. Machine-readable structuredContent is always included either way."
  4. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description contributes one genuinely new behavioural fact — that the call is free/no-credit — but says nothing about invalid-input handling (e.g. a non-NANP or malformed code) or latency. With annotations carrying the load, a 3 is fair.

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?

A single tight sentence front-loads the resource and the returned fields, with 'Free.' as a compact cost signal. It is efficient and free of filler; only the verbless, telegrammatic phrasing keeps it from a 5.

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, annotations covering safety, and full schema description coverage on both params, the definition needs only to say what the tool is and what it returns — which it does. The only shortfall is the unresolved NPA-NXX vs three-digit-area-code ambiguity.

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%, so the areaCode format and the four output formats are already documented in the schema, making 3 the baseline. The description adds no new parameter meaning and in fact introduces mild ambiguity: it advertises 'NPA-NXX prefix' support while the schema restricts areaCode to a three-digit NANP code, which could lead an agent to pass a six-digit prefix.

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 (area code / NPA-NXX prefix) and the exact payload returned (region, carrier, line type), so an agent knows precisely what it gets back. It does not explicitly distinguish itself from near-neighbours like reverse_phone_lookup or phone_intelligence, so it stops 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 statement of when to pick this over reverse_phone_lookup or phone_intelligence, and no prerequisites or exclusions. The trailing 'Free.' is the only implicit routing signal, hinting it is a no-cost call compared to paid unlock/intelligence siblings, but the agent must infer that.

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