Analytics
get_analytics
Aggregate site metrics from the site_stats rollup for today | 7d | 30d | all: page_views, visitor_days, submissions_count, plan_completions, gate_passes, engaged_seconds, plus the resolved range and day_from (UTC date). Same numbers as the Analytics dashboard tab. Read-only.
Behaviour
- Effect
- Read only. Calling it never changes anything in the account.
- Repeat calls
- Idempotent. Repeating the same call produces the same result.
- Plan
- Available on every plan, including free.
Parameters
| Name | Type | Required |
|---|---|---|
| site_id | uuid | Yes |
| range | enum today | 7d | 30d | all | Yes |
Returns
| Name | Type |
|---|---|
| page_views | integer |
| visitor_days | integer |
| submissions_count | integer |
| plan_completions | integer |
| gate_passes | integer |
| engaged_seconds | integer |
| range | enum today | 7d | 30d | all |
| day_from | string |
Using it
get_analytics is called by an AI assistant connected to Sentway over MCP, not by hand. Point the assistant at the Sentway MCP endpoint and complete the OAuth flow, and the tool becomes available in the same session as the other 56 Sentway tools. See connecting over MCP.