SCALIX help

← All tools

clarity_query_dashboard

Microsoft Clarity read low risk

Part of the User Behaviour Agent.

What it does

Ask a registered client's Clarity project a natural-language dashboard question and get Clarity's own answer — e.g. 'dead clicks by page for the last 7 days', 'scroll depth by device last 14 days', 'sessions by channel last 30 days'. This uses the endpoint Microsoft's official Clarity MCP server uses (clarity.microsoft.com/mcp/dashboard/query); Microsoft does not document it, so it may change without notice and every result says so. It reaches further back than the 3-day export API and covers the whole dashboard, which is why the CRO brief asks it three fixed questions. Ask ONE metric per query with an explicit time range. The token comes from the stored client profile. Returns {success, data:{client, project_id, query, timezone, answer}, warnings} where answer is Clarity's response as received.

When to use it

Use in the CRO audit for the three fixed questions in cro_collect_brief (friction by page, scroll depth by device, traffic by channel over 7-30 days) and whenever the user asks a Clarity dashboard question the 3-day export cannot answer. Prefer clarity_get_insights when the last 3 days by URL and device are enough.

Inputs

NameTypeRequiredDescription
clientstringyesThe client's label (e.g. 'Acme Roofing') or Clarity project id exactly as registered under Clients in the Scalix console. The stored, encrypted token is used — never pass a token in chat.
querystringyesOne metric with an explicit time range, e.g. 'dead clicks by page for the last 7 days'.
timezonestringnoIANA timezone for the answer's dates (default UTC).

Safeguards

Policy

Read-only. This tool calls an endpoint Microsoft's official Clarity MCP server uses but does not document; it may change without notice, so every result says so and clarity_get_insights is the fallback. Never re-identify a visitor from session data, never pool one client's data with another's, and cite the UTC window with every figure.

Reminder

Clarity's answer is generated from dashboard data and may include rounding or a time range slightly different from the one asked — quote the range Clarity states, not the one you typed. Whether this counts against the 10-per-day export quota is not documented; budget it as if it does.

Errors

Error classMeansWhat to doRetry
connection_not_foundNo client with that label or Clarity project id is registered for your account.Register the client under Clients in the Scalix console (label, Clarity project id, Data Export API token), then retry with the label.no
not_configuredThe client exists but has no Clarity project id or API token stored.Edit the client under Clients: add the Clarity project id and a token generated in Clarity -> Settings -> Data Export (project admins only).no
needs_reauthClarity rejected the stored token (expired, revoked or not authorised for this project); the client is now flagged.Generate a new token in Clarity -> Settings -> Data Export and replace it under Clients; the flag clears on save.no
rate_limitedThis Clarity project's 10 Data Export requests for today are used up.Reuse the Clarity data already fetched today (it is in this conversation); the quota resets at 00:00 UTC.no
invalid_argumentAn argument is outside what Clarity accepts.Fix the argument named in the message and retry.no
platform_unavailableClarity did not answer or returned a server error.Retry in a minute; if an undocumented endpoint answered 404, use clarity_get_insights instead and tell the Scalix team.yes

Edge cases

  • The answer shape is whatever Clarity returns for that question (table, text or both); read it, do not assume fields.
  • Vague questions ('how is the site doing') produce vague answers — one metric, one range.
  • If the endpoint answers 404 Microsoft has moved it; the error tells you to fall back to clarity_get_insights.