Skip to main content
Glama

IP-API.io

asn_lookup

asn_lookup
Destructive

Look up ASN, organization, network prefix, and datacenter classification for an IP address.

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

Input Schema

NameRequiredDescriptionDefault
ipYesIPv4 or IPv6 address to look up.
api_keyYesip-api.io API key.

Output Schema

NameRequiredDescriptionDefault
ipYes
asnNo
countryNo
networkNo
country_codeNo
organizationNo
is_datacenterYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior1/5

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

The description frames this as a passive query ('look up ... for an IP address'), yet annotations declare readOnlyHint=false, destructiveHint=true, and idempotentHint=false. That mismatch is left entirely unexplained, and the description adds nothing about API-key requirements, rate limits, or failure modes to resolve it.

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?

A single front-loaded sentence that lists the payload of the call with no filler or redundancy. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the two parameters are schema-documented. What is missing is the routing information an agent needs — how this differs from ip_lookup — and any resolution of the read-only-looking operation versus the destructive/not-read-only annotations.

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?

Both parameters are fully documented in the schema (IP format, API key), so the schema does the heavy lifting and a baseline 3 applies. The description contributes no additional parameter meaning, such as whether IPv6 is fully supported or how batch lookups differ.

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?

Names a specific verb (look up) and enumerates the returned data categories — ASN, organization, network prefix, datacenter classification — for an IP address, so the agent knows exactly what it retrieves. It does not, however, distinguish itself from the sibling ip_lookup, which by name appears to overlap heavily.

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

Usage Guidelines3/5

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

Usage is only implied: the enumerated fields suggest calling this when ASN/org/prefix/datacenter data is needed rather than general IP data. There is no explicit when-to-use, no comparison against ip_lookup or ip_abuse_check/ip_reputation, and no stated prerequisite such as a valid API key in good standing.

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