Skip to main content
Glama

IP Lookup

ip_lookup
Read-only

Look up a public IP: AS, country, cloud provider, CDN, datacenter, Tor exit, crawler, DROP listing and PTR name. A Pro key with its own Shodan or AbuseIPDB key adds exposure and reputation. For every prefix of the AS, call asn_lookup.

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": {
      "ip_address": "<ip_address>"
    },
    "name": "ip_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
ip_addressYesPublic IPv4 or IPv6 address, such as 8.8.8.8 or 2001:4860:4860::8888

Output Schema

NameRequiredDescriptionDefault
asnYesThe AS of the IPtoASN prefix that holds the address. null when no prefix holds it or the list is not loaded. asn_name and asn_country are then null too.
ptrYesA PTR name of the address. It is the first of the first 10 names whose A or AAAA record holds the address. When none does, it is the first name. null when there is none or the question failed.
is_cdnYestrue when the cloud range that holds the address belongs to a CDN, false when it does not. null when no range holds it or the ranges are not loaded. An address of no range can still be a CDN edge.
crawlerYesThe crawler list whose range holds the address, such as googlebot. null when no list holds it or the lists are not loaded.
creditsYes
asn_nameYesThe name IPtoASN gives the AS.
listed_onYesDROP prefixes that hold the address, the longest first. [] when none holds it. null while the list is not loaded.
ip_addressYesThe address in canonical form.
reputationYesThe AbuseIPDB slot, filled with the caller's own stored key. available true adds source and the report members. available false adds reason and the members that reason names.
asn_countryYesThe two-letter country where the AS is registered. null when IPtoASN names none.
geo_countryYesThe two-letter country of the address, from DB-IP Lite. null when no prefix holds the address or the list is not loaded.
is_tor_exitYestrue when the Tor Project's exit list holds the address, false when it does not. null while the list is not loaded.
unavailableYesEach key names a part that could not be answered. A list that is not loaded gets not_synced under the first field of its group. asn also stands for asn_name and asn_country, and cloud_provider for cloud_service and is_cdn. {} when every part answered.
cloud_serviceYesThe service of that range, such as ec2 or cloudfront.
is_datacenterYestrue when a cloud range or a datacenter AS holds the address. false only when IPtoASN and the cloud ranges are both loaded and neither matches. null when it is not true and either is not loaded.
cloud_providerYesThe cloud or CDN provider whose published range holds the address, such as aws. null when no range holds it or the ranges are not loaded.
internet_exposureYesThe Shodan slot, filled with the caller's own stored key. Its forms are as in reputation. available true adds source and the members from ports to last_update.
is_ptr_forward_confirmedYestrue when an A or AAAA record of ptr holds the address. false when every forward question was answered and none of the first 10 PTR names maps back. null when ptr is null or a forward question failed.

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?

Annotations already establish readOnly and openWorld behavior, so the description focuses on useful additional context: the lookup enriches data with exposure and reputation when a Pro key plus Shodan or AbuseIPDB key is configured. It does not discuss rate limits or failure behavior, but the key behavioral dependency is disclosed.

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?

The description is front-loaded with the lookup scope and returned data types, then adds the Pro-key behavior and sibling routing in two short sentences. The AS-prefix sentence is slightly abrupt but still concise and relevant.

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 single-parameter lookup with a full schema, an output schema, and clear annotations, the description is largely complete: it names the data returned, notes the Pro-key enrichment, and points to asn_lookup for prefix data. Minor omissions like private-IP handling or rate limits do not undermine correct invocation.

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%, and the schema already documents ip_address as a public IPv4 or IPv6 address with examples. The description reinforces that this is a public IP lookup but adds no further syntax or format guidance beyond the schema, so baseline 3 is appropriate.

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?

The description uses a specific verb ('Look up') and resource ('public IP'), then enumerates the exact data categories returned: AS, country, cloud provider, CDN, datacenter, Tor exit, crawler, DROP listing, and PTR name. It also names the asn_lookup sibling for prefix-level AS data, making the tool easy to distinguish from related lookup tools.

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?

It clearly targets public IP lookups and explicitly routes AS-prefix use cases to asn_lookup. It does not cover exclusions such as private/reserved addresses or when to prefer other IP-related investigation paths, but the core alternative is stated.

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.