top_locations
Pack: cloudflare-radar · Endpoint: https://gateway.pipeworx.io/cloudflare-radar/mcp
Top locations by a metric. metric=http_requests returns countries by share of HTTP traffic; metric=dns_queries by DNS; metric=attacks by attack origin. Returns ranked list with share percentages.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
metric | string | no | http_requests | dns_queries | attacks (default http_requests) |
date_range | string | no | Lookback window (default 28d) |
limit | number | no | 1-100 (default 10) |
Example call
curl -X POST https://gateway.pipeworx.io/cloudflare-radar/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"top_locations","arguments":{}}}'
Response shape
Always returns: metric, date_range, locations
| Field | Type | Description |
|---|---|---|
metric | string | Metric type (http_requests, dns_queries, attacks) |
date_range | string | Lookback window applied |
locations | array | Ranked list of top locations |
Full JSON Schema
{
"type": "object",
"properties": {
"metric": {
"type": "string",
"description": "Metric type (http_requests, dns_queries, attacks)"
},
"date_range": {
"type": "string",
"description": "Lookback window applied"
},
"locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": [
"string",
"null"
],
"description": "2-letter country code"
},
"name": {
"type": [
"string",
"null"
],
"description": "Country name"
},
"share_pct": {
"type": [
"number",
"null"
],
"description": "Percentage share of metric"
}
}
},
"description": "Ranked list of top locations"
}
},
"required": [
"metric",
"date_range",
"locations"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"cloudflare-radar": {
"url": "https://gateway.pipeworx.io/cloudflare-radar/mcp"
}
}
}
See Getting Started for client-specific install steps.