Skip to main content
Glama

Ipquery Lookup Ip

ipquery_lookup_ip
Read-onlyIdempotent

Full IP intelligence for an IPv4 or IPv6 address, geolocation (country, city, state, postal code, lat/long, timezone, local time; blank fields are filled from a second and third public source only when that source places the IP in the same city and region, and a source that places it elsewhere is returned whole, labelled, as location_alternates rather than mixed in), ISP/ASN/org, ownership fields (ASN, owner name, network range, owner domain -- each with its source, null with a reason when no source states it; also nested as company.name / company.domain / company.network, with network_range_basis announced|registry and the registry allocation as registry_network_range), and security risk flags (VPN, proxy, Tor, datacenter, mobile + a 0-100 risk score) and an abuse signal (is_abuser: listed on a public abuse blocklist, with the lists that matched, plus the abuse contact of the network from the registry). For "which company owns this IP" call rdap_ip, the registry source for ownership; this tool adds geolocation and risk. Keyless.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ip": "8.8.8.8"
    },
    "name": "ipquery_lookup_ip"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipYesAn IPv4 or IPv6 address to look up, e.g. "8.8.8.8" or "2606:4700:4700::1111".

Output Schema

NameRequiredDescriptionDefault
ipNo
asnNo
ispNo
riskNo
abuseNo
companyNo
locationNo
is_abuserNo
asn_sourceNo
owner_nameNo
city_reasonNoNull in every sampled response; type not observed, so left unconstrained.
city_sourceNo
owner_domainNo
state_reasonNoNull in every sampled response; type not observed, so left unconstrained.
state_sourceNo
network_rangeNo
ownership_notesNo
owner_name_sourceNo
coordinates_sourceNo
postal_code_reasonNoNull in every sampled response; type not observed, so left unconstrained.
postal_code_sourceNo
location_alternatesNo
network_range_basisNo
owner_domain_reasonNoNull in every sampled response; type not observed, so left unconstrained.
owner_domain_sourceNo
network_range_sourceNo
postal_code_candidateNoNull in every sampled response; type not observed, so left unconstrained.
registry_network_rangeNo
owner_domain_candidatesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, but the description goes well beyond them: it explains the multi-source merge rule (fields filled only when a second/third source agrees on city and region), that disagreeing sources are returned whole and labelled as `location_alternates` rather than blended, and that unresolvable ownership fields are null with a reason. That source-fallback and null-semantics disclosure is exactly the kind of behavior annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead clause is well front-loaded, but the body is one sprawling sentence with nested parentheticals that nest inside other parentheticals, making it hard to parse on a first read. Every piece of content is substantive, so this is a structure problem rather than padding — dense enumerations could be split into short clauses or bullets.

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 lookup with an output schema available, coverage is more than sufficient: behavior, fallback rules, failure semantics, and sibling routing are all present. The only inefficiency is that it re-enumerates return fields in detail (company.name, registry_network_range, location_alternates) that the output schema already defines, which inflates length without adding new call-correctness information.

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?

There is a single parameter at 100% schema description coverage that already names IPv4/IPv6 and gives example addresses, so the schema does the work. The description restates "an IPv4 or IPv6 address" without adding format rules, normalization behavior, or handling of malformed input. Baseline 3 is appropriate here.

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 opens with a specific verb+resource ("Full IP intelligence for an IPv4 or IPv6 address") and enumerates the exact data families returned: geolocation, ISP/ASN/org, ownership, risk flags, abuse signal. It also explicitly contrasts itself with the sibling `rdap_ip`, so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the alternative and the exact condition that selects it: "For 'which company owns this IP' call rdap_ip, the registry source for ownership; this tool adds geolocation and risk." It also states "Keyless," removing any auth prerequisite guesswork. Nothing about when to pick this tool over its sibling is left to inference.

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.