Skip to main content
Glama

toolkit-mcp-server: geolocate IP

toolkit_geolocate_ip
Read-onlyIdempotent

Resolve a public IP or dotted hostname to country, region, city, coordinates, ASN, AS holder and name, organization, ISP, timezone, and proxy/hosting/mobile flags. Supply target for one lookup or targets for an ordered batch, never both; blank target and empty targets are unset. Batches process the first 100 positions (duplicates retained) and disclose every remainder in unprocessedTargets; at most 1000 inputs are accepted. Each batch position reports its result or an error with recovery, so cached and local outcomes survive quota refusals. The provider is called directly, never the target. Hostnames are DNS-resolved and resolvedIp names the located address. Private/reserved addresses have no public geolocation. Results are best-effort, city-level at best; VPNs, proxies, mobile NAT, and anycast defeat IP-to-location. Read proxy, hosting, and mobile before trusting coordinates: true describes infrastructure, not the user. org can name a customer or sub-allocation rather than the network operator; read isp, asHolder, and asName for the operator. Absent metadata remains unknown. Provider-supplied names are third-party registry text; content[] escapes them so they read as literal text, never as Markdown. source names the provider. Single and batch quotas are independent; cache hits consume neither quota.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
targetNoOne public IP or dotted hostname; mutually exclusive with nonempty targets.
targetsNoOrdered public IPs or dotted hostnames; first 100 positions are served, every remainder is disclosed. Mutually exclusive with nonblank target.

Output Schema

NameRequiredDescriptionDefault
asnNoAutonomous System number, e.g. "AS15169". Absent on providers that omit it.
ispNoInternet service provider for the address, e.g. "Cloudflare, Inc". Absent when unknown.
orgNoOrganization the address is registered to, e.g. "Google LLC"; often a customer or sub-allocation label rather than the network operator. Carries asHolder, else isp, when the provider names no organization. Absent when all three are unknown.
cityNoCity name. Absent when unknown.
errorNoPresent when the call failed. Absent on success.
proxyNoTrue when the address is a known proxy, VPN, or Tor exit — the location describes the exit node, not the user. Absent when the provider does not report it.
asNameNoRegistry name of the autonomous system, e.g. "CLOUDFLARENET". Absent when the provider omits it.
mobileNoTrue when the address belongs to a mobile carrier network, where NAT can place the location far from the device. Absent when unreported.
regionNoRegion or state name. Absent when unknown.
sourceNoThe provider that answered the lookup, e.g. "ip-api".
targetNoThe target as supplied (IP or hostname).
countryNoCountry name. Absent when the provider does not report it.
hostingNoTrue when the address belongs to a hosting or datacenter network, so the location is a facility rather than a person. Absent when unreported.
resultsNoOrdered results or failures for the first 100 input positions.
asHolderNoHolder of the autonomous system as the provider names it after the ASN, e.g. "Cloudflare, Inc." for AS13335. Absent when the provider reports no AS or no holder name.
latitudeNoLatitude in decimal degrees. Absent when unknown.
timezoneNoIANA timezone, e.g. "America/Los_Angeles". Absent when unknown.
longitudeNoLongitude in decimal degrees. Absent when unknown.
resolvedIpNoThe IP that was actually located (a supplied hostname is resolved to this first).
countryCodeNoISO 3166-1 alpha-2 country code. Absent when unknown.
failedCountNoNumber of failed processed targets.
unprocessedTargetsNoEvery input position past the first 100; resubmit these targets in another batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedOutput schema / properties / asHolder
      Added value: +{
      +  "description": "Holder of the autonomous system as the provider names it after the ASN, e.g. \"Cloudflare, Inc.\" for AS13335. Absent when the provider reports no AS or no holder name.",
      +  "maxLength": 256,
      +  "type": "string"
      +}
    • addedOutput schema / properties / asName
      Added value: +{
      +  "description": "Registry name of the autonomous system, e.g. \"CLOUDFLARENET\". Absent when the provider omits it.",
      +  "maxLength": 256,
      +  "type": "string"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `rate_limited`: The endpoint request quota or provider cooldown is exhausted. `unresolvable_host`: A hostname target failed DNS resolution. `private_target`: The target resolves to a private/reserved IP with no public geolocation. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `rate_limited`: The endpoint request quota or provider cooldown is exhausted. `unresolvable_host`: A hostname target failed DNS resolution. `private_target`: The target resolves to a private/reserved IP, or to a public-format IP the provider reports as unlocatable (reserved, unrouted, or bogon); neither has public geolocation. Other values are possible when a failure originates below the handler."
    • addedOutput schema / properties / isp
      Added value: +{
      +  "description": "Internet service provider for the address, e.g. \"Cloudflare, Inc\". Absent when unknown.",
      +  "maxLength": 256,
      +  "type": "string"
      +}
    • changedOutput schema / properties / org / description
      Previous value: -"Owning organization or ISP, e.g. \"Google LLC\". Absent when unknown."New value: +"Organization the address is registered to, e.g. \"Google LLC\"; often a customer or sub-allocation label rather than the network operator. Carries asHolder, else isp, when the provider names no organization. Absent when all three are unknown."
    • changedOutput schema / properties / results / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "Normalized geolocation metadata for one target.",
      -    "properties": {
      -      "asn": {
      -        "description": "Autonomous System number, e.g. \"AS15169\". Absent on providers that omit it.",
      -        "maxLength": 256,
      -        "type": "string"
      -      },
      -      "city": {
      -        "description": "City name. Absent when unknown.",
      -        "maxLength": 256,
      -        "type": "string"
      -      },
      -      "country": {
      -        "description": "Country name. Absent when the provider does not report it.",
      -        "maxLength": 256,
      -        "type": "string"
      -      },
      -      "countryCode": {
      -        "description": "ISO 3166-1 alpha-2 country code. Absent when unknown.",
      -        "maxLength": 256,
      -        "type": "string"
      -      },
      -      "hosting": {
      -        "description": "True when the address belongs to a hosting or datacenter network, so the location is a facility rather than a person. Absent when unreported.",
      -        "type": "boolean"
      -      },
      -      "latitude": {
      -        "description": "Latitude in decimal degrees. Absent when unknown.",
      -        "type": "number"
      -      },
      -      "longitude": {
      -        "description": "Longitude in decimal degrees. Absent when unknown.",
      -        "type": "number"
      -      },
      -      "mobile": {
      -        "description": "True when the address belongs to a mobile carrier network, where NAT can place the location far from the device. Absent when unreported.",
      -        "type": "boolean"
      -      },
      -      "org": {
      -        "description": "Owning organization or ISP, e.g. \"Google LLC\". Absent when unknown.",
      -        "maxLength": 256,
      -        "type": "string"
      -      },
      -      "proxy": {
      -        "description": "True when the address is a known proxy, VPN, or Tor exit — the location describes the exit node, not the user. Absent when the provider does not report it.",
      -        "type": "boolean"
      -      },
      -      "region": {
      -        "description": "Region or state name. Absent when unknown.",
      -        "maxLength": 256,
      -        "type": "string"
      -      },
      -      "resolvedIp": {
      -        "description": "The IP that was actually located (a supplied hostname is resolved to this first).",
      -        "type": "string"
      -      },
      -      "source": {
      -        "description": "The provider that answered the lookup, e.g. \"ip-api\".",
      -        "type": "string"
      -      },
      -      "target": {
      -        "description": "The target as supplied (IP or hostname).",
      -        "type": "string"
      -      },
      -      "timezone": {
      -        "description": "IANA timezone, e.g. \"America/Los_Angeles\". Absent when unknown.",
      -        "maxLength": 256,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "target",
      -      "resolvedIp",
      -      "source"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A failed batch target with recovery guidance.",
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "description": "Failure for this input position.",
      -        "properties": {
      -          "message": {
      -            "description": "Server-authored failure message.",
      -            "type": "string"
      -          },
      -          "reason": {
      -            "description": "Why this target could not be located.",
      -            "enum": [
      -              "unresolvable_host",
      -              "private_target",
      -              "rate_limited",
      -              "provider_unavailable"
      -            ],
      -            "type": "string"
      -          },
      -          "recovery": {
      -            "additionalProperties": false,
      -            "description": "Recovery guidance for the failed target.",
      -            "properties": {
      -              "hint": {
      -                "description": "How to recover this target lookup.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "hint"
      -            ],
      -            "type": "object"
      -          },
      -          "waitTimeSeconds": {
      -            "description": "Seconds to wait before retrying a rate-limited target.",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "reason",
      -          "message",
      -          "recovery"
      -        ],
      -        "type": "object"
      -      },
      -      "target": {
      -        "description": "The failed target as supplied.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "target",
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "Normalized geolocation metadata for one target.",
      +    "properties": {
      +      "asHolder": {
      +        "description": "Holder of the autonomous system as the provider names it after the ASN, e.g. \"Cloudflare, Inc.\" for AS13335. Absent when the provider reports no AS or no holder name.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "asName": {
      +        "description": "Registry name of the autonomous system, e.g. \"CLOUDFLARENET\". Absent when the provider omits it.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "asn": {
      +        "description": "Autonomous System number, e.g. \"AS15169\". Absent on providers that omit it.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "city": {
      +        "description": "City name. Absent when unknown.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "country": {
      +        "description": "Country name. Absent when the provider does not report it.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "countryCode": {
      +        "description": "ISO 3166-1 alpha-2 country code. Absent when unknown.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "hosting": {
      +        "description": "True when the address belongs to a hosting or datacenter network, so the location is a facility rather than a person. Absent when unreported.",
      +        "type": "boolean"
      +      },
      +      "isp": {
      +        "description": "Internet service provider for the address, e.g. \"Cloudflare, Inc\". Absent when unknown.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "latitude": {
      +        "description": "Latitude in decimal degrees. Absent when unknown.",
      +        "type": "number"
      +      },
      +      "longitude": {
      +        "description": "Longitude in decimal degrees. Absent when unknown.",
      +        "type": "number"
      +      },
      +      "mobile": {
      +        "description": "True when the address belongs to a mobile carrier network, where NAT can place the location far from the device. Absent when unreported.",
      +        "type": "boolean"
      +      },
      +      "org": {
      +        "description": "Organization the address is registered to, e.g. \"Google LLC\"; often a customer or sub-allocation label rather than the network operator. Carries asHolder, else isp, when the provider names no organization. Absent when all three are unknown.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "proxy": {
      +        "description": "True when the address is a known proxy, VPN, or Tor exit — the location describes the exit node, not the user. Absent when the provider does not report it.",
      +        "type": "boolean"
      +      },
      +      "region": {
      +        "description": "Region or state name. Absent when unknown.",
      +        "maxLength": 256,
      +        "type": "string"
      +      },
      +      "resolvedIp": {
      +        "description": "The IP that was actually located (a supplied hostname is resolved to this first).",
      +        "type": "string"
      +      },
      +      "source": {
      +        "description": "The provider that answered the lookup, e.g. \"ip-api\".",
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "The target as supplied (IP or hostname).",
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "description": "IANA timezone, e.g. \"America/Los_Angeles\". Absent when unknown.",
      +        "maxLength": 256,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "target",
      +      "resolvedIp",
      +      "source"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A failed batch target with recovery guidance.",
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "description": "Failure for this input position.",
      +        "properties": {
      +          "message": {
      +            "description": "Server-authored failure message.",
      +            "type": "string"
      +          },
      +          "reason": {
      +            "description": "Why this target could not be located.",
      +            "enum": [
      +              "unresolvable_host",
      +              "private_target",
      +              "rate_limited",
      +              "provider_unavailable"
      +            ],
      +            "type": "string"
      +          },
      +          "recovery": {
      +            "additionalProperties": false,
      +            "description": "Recovery guidance for the failed target.",
      +            "properties": {
      +              "hint": {
      +                "description": "How to recover this target lookup.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "hint"
      +            ],
      +            "type": "object"
      +          },
      +          "waitTimeSeconds": {
      +            "description": "Seconds to wait before retrying a rate-limited target.",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "reason",
      +          "message",
      +          "recovery"
      +        ],
      +        "type": "object"
      +      },
      +      "target": {
      +        "description": "The failed target as supplied.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "target",
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed10 schema fields changed
    • changedInput schema / properties / target / anyOf
      Previous value: -[
      -  {
      -    "description": "A raw IPv4 address.",
      -    "format": "ipv4",
      -    "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$",
      -    "type": "string"
      -  },
      -  {
      -    "description": "A raw IPv6 address.",
      -    "format": "ipv6",
      -    "pattern": "^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$",
      -    "type": "string"
      -  },
      -  {
      -    "description": "A dotted hostname, e.g. \"example.com\".",
      -    "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "description": "Blank means unset.",
      +    "pattern": "^\\s*$",
      +    "type": "string"
      +  },
      +  {
      +    "description": "A raw IPv4 address.",
      +    "format": "ipv4",
      +    "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$",
      +    "type": "string"
      +  },
      +  {
      +    "description": "A raw IPv6 address.",
      +    "format": "ipv6",
      +    "pattern": "^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$",
      +    "type": "string"
      +  },
      +  {
      +    "description": "A dotted hostname, e.g. \"example.com\".",
      +    "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / target / description
      Previous value: -"A public IPv4/IPv6 address or a hostname (e.g. \"8.8.8.8\" or \"example.com\")."New value: +"One public IP or dotted hostname; mutually exclusive with nonempty targets."
    • addedInput schema / properties / targets
      Added value: +{
      +  "description": "Ordered public IPs or dotted hostnames; first 100 positions are served, every remainder is disclosed. Mutually exclusive with nonblank target.",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "description": "A raw IPv4 address.",
      +        "format": "ipv4",
      +        "pattern": "^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$",
      +        "type": "string"
      +      },
      +      {
      +        "description": "A raw IPv6 address.",
      +        "format": "ipv6",
      +        "pattern": "^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$",
      +        "type": "string"
      +      },
      +      {
      +        "description": "A dotted hostname, e.g. \"example.com\".",
      +        "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$",
      +        "type": "string"
      +      }
      +    ],
      +    "description": "A public IPv4/IPv6 address or a hostname (e.g. \"8.8.8.8\" or \"example.com\")."
      +  },
      +  "maxItems": 1000,
      +  "type": "array"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "target"
      -]
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "target",
      -      "resolvedIp",
      -      "source"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `unresolvable_host`: A hostname target failed DNS resolution. `private_target`: The target resolves to a private/reserved IP with no public geolocation. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `rate_limited`: The endpoint request quota or provider cooldown is exhausted. `unresolvable_host`: A hostname target failed DNS resolution. `private_target`: The target resolves to a private/reserved IP with no public geolocation. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "unresolvable_host",
      -  "private_target"
      -]New value: +[
      +  "rate_limited",
      +  "unresolvable_host",
      +  "private_target"
      +]
    • addedOutput schema / properties / failedCount
      Added value: +{
      +  "description": "Number of failed processed targets.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / results
      Added value: +{
      +  "description": "Ordered results or failures for the first 100 input positions.",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "additionalProperties": false,
      +        "description": "Normalized geolocation metadata for one target.",
      +        "properties": {
      +          "asn": {
      +            "description": "Autonomous System number, e.g. \"AS15169\". Absent on providers that omit it.",
      +            "maxLength": 256,
      +            "type": "string"
      +          },
      +          "city": {
      +            "description": "City name. Absent when unknown.",
      +            "maxLength": 256,
      +            "type": "string"
      +          },
      +          "country": {
      +            "description": "Country name. Absent when the provider does not report it.",
      +            "maxLength": 256,
      +            "type": "string"
      +          },
      +          "countryCode": {
      +            "description": "ISO 3166-1 alpha-2 country code. Absent when unknown.",
      +            "maxLength": 256,
      +            "type": "string"
      +          },
      +          "hosting": {
      +            "description": "True when the address belongs to a hosting or datacenter network, so the location is a facility rather than a person. Absent when unreported.",
      +            "type": "boolean"
      +          },
      +          "latitude": {
      +            "description": "Latitude in decimal degrees. Absent when unknown.",
      +            "type": "number"
      +          },
      +          "longitude": {
      +            "description": "Longitude in decimal degrees. Absent when unknown.",
      +            "type": "number"
      +          },
      +          "mobile": {
      +            "description": "True when the address belongs to a mobile carrier network, where NAT can place the location far from the device. Absent when unreported.",
      +            "type": "boolean"
      +          },
      +          "org": {
      +            "description": "Owning organization or ISP, e.g. \"Google LLC\". Absent when unknown.",
      +            "maxLength": 256,
      +            "type": "string"
      +          },
      +          "proxy": {
      +            "description": "True when the address is a known proxy, VPN, or Tor exit — the location describes the exit node, not the user. Absent when the provider does not report it.",
      +            "type": "boolean"
      +          },
      +          "region": {
      +            "description": "Region or state name. Absent when unknown.",
      +            "maxLength": 256,
      +            "type": "string"
      +          },
      +          "resolvedIp": {
      +            "description": "The IP that was actually located (a supplied hostname is resolved to this first).",
      +            "type": "string"
      +          },
      +          "source": {
      +            "description": "The provider that answered the lookup, e.g. \"ip-api\".",
      +            "type": "string"
      +          },
      +          "target": {
      +            "description": "The target as supplied (IP or hostname).",
      +            "type": "string"
      +          },
      +          "timezone": {
      +            "description": "IANA timezone, e.g. \"America/Los_Angeles\". Absent when unknown.",
      +            "maxLength": 256,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "target",
      +          "resolvedIp",
      +          "source"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "description": "A failed batch target with recovery guidance.",
      +        "properties": {
      +          "error": {
      +            "additionalProperties": false,
      +            "description": "Failure for this input position.",
      +            "properties": {
      +              "message": {
      +                "description": "Server-authored failure message.",
      +                "type": "string"
      +              },
      +              "reason": {
      +                "description": "Why this target could not be located.",
      +                "enum": [
      +                  "unresolvable_host",
      +                  "private_target",
      +                  "rate_limited",
      +                  "provider_unavailable"
      +                ],
      +                "type": "string"
      +              },
      +              "recovery": {
      +                "additionalProperties": false,
      +                "description": "Recovery guidance for the failed target.",
      +                "properties": {
      +                  "hint": {
      +                    "description": "How to recover this target lookup.",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "hint"
      +                ],
      +                "type": "object"
      +              },
      +              "waitTimeSeconds": {
      +                "description": "Seconds to wait before retrying a rate-limited target.",
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "reason",
      +              "message",
      +              "recovery"
      +            ],
      +            "type": "object"
      +          },
      +          "target": {
      +            "description": "The failed target as supplied.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "target",
      +          "error"
      +        ],
      +        "type": "object"
      +      }
      +    ],
      +    "description": "Result or failure for one input position."
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / unprocessedTargets
      Added value: +{
      +  "description": "Every input position past the first 100; resubmit these targets in another batch.",
      +  "items": {
      +    "description": "One unprocessed target.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "target",
      +      "resolvedIp",
      +      "source"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `unresolvable_host`: A hostname target failed DNS resolution. `private_target`: The target resolves to a private/reserved IP with no public geolocation. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "unresolvable_host",
      +            "private_target"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "target",
      -  "resolvedIp",
      -  "source"
      -]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/openWorld/idempotent annotations: it discloses batch truncation at 100 positions with remainder surfaced in unprocessedTargets, a 1000-input cap, per-position error reporting that preserves cached results across quota refusals, independent single vs batch quotas, and that cache hits consume no quota. It also warns the provider is called directly (never the target), that hostnames are DNS-resolved with resolvedIp reported, and that results are best-effort city-level and defeatable by VPN/anycast.

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?

Front-loads purpose, then invocation rules, then limits, then interpretation caveats — a sensible order with no filler sentences. It is dense and long enough that a reader must work through several clauses, but nearly every clause carries operational information an agent needs.

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

Completeness5/5

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

Even though an output schema exists, the description supplies the interpretive layer an agent needs: read proxy/hosting/mobile before trusting coordinates, org may name a customer rather than the operator so prefer isp/asHolder/asName, absent metadata stays unknown, and content[] escapes third-party registry strings so they are literal text. Nothing essential to calling or interpreting the tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description adds semantics the schema cannot express: mutual exclusivity of target/targets, blank-as-unset, duplicate retention, and the first-100-of-many processing rule. That meaningfully exceeds the baseline set by a fully documented schema.

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?

Opens with a specific verb and resource ('Resolve a public IP or dotted hostname') and enumerates the exact fields returned (country, region, city, coordinates, ASN, org, ISP, timezone, proxy/hosting/mobile flags). Sibling tools are unrelated utility functions (hash, encode, QR, ID), so no differentiation is required.

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?

Gives concrete invocation guidance: use target for one lookup, targets for an ordered batch, never both, and blank/empty values count as unset. It does not name an alternative tool or a when-not-to-use case beyond private/reserved addresses having no public geolocation, which keeps it from a 5.

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.