plausible_query
Run an arbitrary Plausible Stats API v2 query for advanced traffic analysis beyond the built-in tools, covering custom metrics, dimensions, filters, ordering, and pagination.
Instructions
Execute an arbitrary Plausible Stats API v2 query. Use this for advanced analysis not covered by the other tools. See Plausible API v2 docs for full query syntax.
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": {
"metrics": "<metrics>",
"date_range": "<date_range>"
},
"name": "plausible_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return | |
| offset | No | Pagination offset | |
| filters | No | Filters, e.g. [["is", "visit:source", ["Google"]]] | |
| include | No | Extra includes, e.g. {time_labels: true} | |
| metrics | Yes | Metrics to retrieve, e.g. ['visitors', 'pageviews', 'events'] | |
| order_by | No | Sort order, e.g. [['visitors', 'desc']] | |
| date_range | Yes | Date range: '7d', '30d', 'month', 'year', 'all', or ['YYYY-MM-DD', 'YYYY-MM-DD'] | |
| dimensions | No | Dimensions to group by, e.g. ['event:page', 'visit:source'] |