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

NameTypeRequiredDescription
metricstringnohttp_requests | dns_queries | attacks (default http_requests)
date_rangestringnoLookback window (default 28d)
limitnumberno1-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

FieldTypeDescription
metricstringMetric type (http_requests, dns_queries, attacks)
date_rangestringLookback window applied
locationsarrayRanked 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.

Regenerated from source · build May 21, 2026