Get site traffic (analytics proxy)
get_site_trafficFetch site traffic metrics from Plausible or umami and return normalized numbers for the board. If unavailable, returns the request URL so you can retrieve the data manually.
Instructions
Read proxy for site traffic: fetch the configured provider's stats (Plausible/umami) using the FEATUREBOARD_ANALYTICS_KEY env var and return normalised numbers so the board can show traffic. Degrades gracefully — when disabled, unconfigured, or missing a key it returns the exact request URL so you can fetch it yourself.
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": {
"project": "<project>"
},
"name": "get_site_traffic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Override the configured window, e.g. 7d, 30d. | |
| metrics | No | Override the configured metrics list. | |
| project | Yes |