check_ip_abuse
PG1 Sovereign Threat Intelligence: looks up one public IPv4 or IPv6 address in AbuseIPDB using YOUR OWN AbuseIPDB API key (free or paid), and returns its abuse confidence score and report counts with attribution to AbuseIPDB. BRING YOUR OWN KEY: send the key in the X-AbuseIPDB-Key HTTP request header on /api/mcp or /api/a2a - never as a tool argument. PG1 has no AbuseIPDB key of its own; without the header the call returns an MCP tool error (isError: true, code abuseipdb_key_required) and AbuseIPDB is not contacted. No PG1 payment required - lookups count against your own AbuseIPDB quota. SIBLING DIFFERENTIATION: Use for a live AbuseIPDB report lookup on a single IP only. Do NOT use for PG1's own threat-feed lookups (use get_ioc_context), hostnames (use check_hostname_reputation) or domains (use check_domain_age). BEHAVIOR: Returns { ip, abuse_confidence_score, total_reports, distinct_reporters, last_reported_at, country_code, usage_type, isp, domain, is_tor, is_whitelisted, attribution }. STATUS: "no_flags" when AbuseIPDB marks the address whitelisted (informational reason IP_WHITELISTED: AbuseIPDB does not count its reports against it); otherwise "flagged" when abuse_confidence_score > 0 (reason IP_ABUSE_REPORTED, with the score, report and reporter counts); otherwise "no_flags" (with informational reason IP_REPORTS_SCORED_ZERO when reports exist but AbuseIPDB scores them 0); "unknown" when the score or report count is missing. IP_TOR_EXIT_NODE is informational. abuse_confidence_score is AbuseIPDB's 0-100 confidence that the address is abusive; a score of 0 is not proof the address is harmless - this tool never returns "safe" or "clean". Results are returned only to the caller whose key was used, are never stored or shared, and are cached in memory for 15 minutes per key. ERRORS (isError: true): abuseipdb_key_required, invalid_abuseipdb_key (AbuseIPDB rejected the key), abuseipdb_rate_limited (your AbuseIPDB quota; retry_after passed through when AbuseIPDB sends it), upstream_unavailable (AbuseIPDB error or timeout), invalid_ip (not exactly one public address: private, reserved or malformed input is rejected without calling AbuseIPDB), invalid_max_age. Rate-limited to 60 calls/hour per caller when unauthenticated; a valid Gumroad license key (X-API-KEY header) exempts the limit.
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": "check_ip_abuse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | Mandatory single public IPv4 or IPv6 address, e.g. '8.8.8.8' or '2001:4860:4860::8888'. No port, CIDR range, brackets or zone id. | |
| max_age_in_days | No | Optional reporting window in days, 1 to 365. Only reports from this many days back are counted. Defaults to 90. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | The address checked (IPv6 in canonical compressed lowercase form). | |
| isp | Yes | ||
| note | No | ||
| cached | Yes | true when served from the 15-minute in-memory cache for your own key. | |
| checks | No | Which underlying sources were checked for this result and whether each one completed. | |
| domain | Yes | ||
| is_tor | Yes | ||
| status | No | "unknown" whenever a source needed for this answer timed out, errored, or was skipped - never "no_flags" in that case. | |
| reasons | No | Machine-readable reason codes for anything flagged in this result. Empty when nothing was flagged. | |
| ip_version | Yes | ||
| request_id | No | UUID for this request, also sent as the X-Request-Id response header. | |
| usage_type | Yes | ||
| attribution | Yes | Always present: the data source and a link to its page for this address. | |
| country_code | Yes | ||
| test_fixture | No | true only when the input was a documented integration test fixture and this response is canned; absent on real results. | |
| total_reports | Yes | Abuse reports received in the window. | |
| is_whitelisted | Yes | ||
| max_age_in_days | Yes | The reporting window used. | |
| last_reported_at | Yes | ISO timestamp of the most recent report, or null when there is none. | |
| distinct_reporters | Yes | Distinct users who reported the address in the window. | |
| abuse_confidence_score | Yes | AbuseIPDB's 0-100 confidence that the address is abusive. A score of 0 is not proof the address is harmless. |