top_locations

Pack: cloudflare-radar · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/top_locations for the schema, then POST the same URL with its arguments for the data.

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

Arguments

{
  "metric": "http_requests",
  "limit": 10
}

curl

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":{"metric":"http_requests","limit":10}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('top_locations', {
  "metric": "http_requests",
  "limit": 10
});

More examples

{
  "metric": "attacks",
  "date_range": "7d",
  "limit": 25
}

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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the cloudflare-radar pack
{
  "mcpServers": {
    "cloudflare-radar": {
      "url": "https://gateway.pipeworx.io/cloudflare-radar/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026