cidr_shield_lookup
Classify any IPv4 offline via Radix Trie longest-prefix match to flag datacenter, VPN, Tor, proxy, or residential IPs for auth and bot-risk checks—no network calls.
Instructions
Performs sub-millisecond offline Radix Trie Longest Prefix Match (LPM) on any IPv4 address to classify traffic as Datacenter/Cloud (AWS, GCP, Azure, Hetzner), VPN, Tor Exit Node, Public Proxy, or Clean Residential. Use when: Authenticating incoming HTTP requests, preventing bot scraping abuse, or assessing IP risk in auth flows without third-party network latency. Do not use when: Performing DNS lookups, WHOIS domain queries, or analyzing SQL databases. Alternative: Use sqltwin_stream_anonymize for database sanitization, or agentpr_guard_audit for code review. Execution: Runs locally in-memory (<0.01ms), read-only, idempotent, zero network calls, zero telemetry, air-gapped deterministic.
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": "<ip>"
},
"name": "cidr_shield_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | Standard dotted-decimal IPv4 address to classify (e.g., '3.5.10.1', '185.220.101.5'). | |
| licenseKey | No | Optional TopAI Sovereign Pro offline license key (or set TOPAI_LICENSE_KEY env variable). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | Queried IPv4 address. | |
| isRisk | Yes | True if IP matches automated, proxy, or datacenter origin. | |
| category | Yes | Classified category: DATACENTER, VPN, TOR, PROXY, or RESIDENTIAL. | |
| provider | Yes | Cloud provider or hosting network name (e.g., 'AWS', 'GCP', 'Hetzner'). | |
| confidence | Yes | Classification confidence score (0.0 to 1.0). |