Skip to main content
Glama

HTTPfy network & DNS tools

ASN lookup

asn_lookup
Read-onlyIdempotent

Look up the autonomous system (ASN) for a public IP address, details for an ASN such as AS15169 (name, country, announced prefixes and address counts), or find ASNs by network name such as Cloudflare.

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": {
      "query": "<query>"
    },
    "name": "asn_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesIP address, ASN or network name (8.8.8.8, AS13335 or Cloudflare)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"IP address or ASN (8.8.8.8 or AS13335)"New value: +"IP address, ASN or network name (8.8.8.8, AS13335 or Cloudflare)"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds value beyond them by enumerating what detail fields come back for an ASN query (name, country, announced prefixes, address counts), which matters since there is no output schema. It does not say what the raw-IP form returns or how network-name matching behaves (exact vs substring).

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?

One sentence, front-loaded with the verb and resource, then the three modes in the order an agent would consider them. No filler, no repetition of the title.

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?

For a one-parameter, non-destructive lookup with a fully documented schema, the description is close to complete and usefully previews the ASN-detail return shape despite no output schema. The remaining gap is that return behavior for the IP and network-name modes is unstated, so the agent cannot anticipate a single ASN versus a list of matches.

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% and the single parameter's schema description already lists 'IP address, ASN or network name (8.8.8.8, AS13335 or Cloudflare)'. The description's examples are essentially a restatement, adding no new syntax or format constraints. Baseline 3 applies when the schema carries the semantics.

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 (look up) and three concrete resource modes: ASN for an IP, ASN details, and ASN search by network name. The parenthetical 'AS15169 (name, country, announced prefixes and address counts)' makes the payload concrete enough that an agent can distinguish this from ip_whois or dns_lookup without opening a schema.

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 three input modes give clear context for when this tool applies (IP → ASN, ASN → details, network name → ASNs). However, it never names a sibling or exclusion, so the agent must infer for itself whether ip_whois or dns_lookup is the better choice for adjacent questions.

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.