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

NameTypeRequired
site_iduuidYes
rangeenum
today | 7d | 30d | all
Yes

Returns

NameType
page_viewsinteger
visitor_daysinteger
submissions_countinteger
plan_completionsinteger
gate_passesinteger
engaged_secondsinteger
rangeenum
today | 7d | 30d | all
day_fromstring

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.