SCALIX help

← All tools

clarity_list_recordings

Microsoft Clarity read low risk

Part of the User Behaviour Agent.

What it does

List Microsoft Clarity session recordings for a registered client's project — session metadata such as pages visited, clicks, rage and dead clicks, duration and the link to watch each session in Clarity — sorted by clicks, duration, page count or recency, within the last 1-30 days, optionally only sessions that visited a URL containing url_contains, with any of Microsoft's recording filters (deviceType, rageClickPresent, deadClickPresent, scrollDepth, sessionDuration, country, source, medium, campaign, smartEvents, javascriptErrors...). This replaces sharing recordings by hand and is the raw material for the session summary Claude writes (Clarity's Copilot summary cannot be exported). It uses the endpoint Microsoft's official Clarity MCP server uses (clarity.microsoft.com/mcp/recordings/sample); Microsoft does not document it, so field names are exactly as returned and may change. Claude cannot watch the videos — summarise from the fields and cite session ids. Returns {success, data:{client, project_id, window, sort, filters, sessions:[...]}, count, warnings}.

When to use it

Use in the CRO audit (see cro_collect_brief) after clarity_get_insights, to pull the sessions behind a friction signal — e.g. rage-click sessions on the landing page, or the longest mobile sessions that did not convert — and to write the session summary. Also when the user asks for recordings of a page or a segment.

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.
daysintegernoLook back N days (1-30, default 3). Clarity keeps recordings for 30 days.
url_containsstringnoOnly sessions that visited a URL containing this text (e.g. '/pricing'); sent as Microsoft's visitedUrls filter with operator 'contains'. A bare '/' is ignored (it would match every page).
sortstringnoSessionClickCount_DESC (default), SessionClickCount_ASC, SessionDuration_DESC, SessionDuration_ASC, PageCount_DESC, PageCount_ASC, SessionStart_DESC, SessionStart_ASC.
countintegernoSessions to return (1-250, default 20).
filtersobjectnoMicrosoft's recordings filter object, passed through: e.g. {"deviceType":["Mobile"],"rageClickPresent":true,"scrollDepth":{"min":null,"max":25},"visitedUrls":[{"url":"/lp","operator":"contains"}]}. url_contains is merged into visitedUrls.

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

Sessions are people: use them as evidence of friction (where they clicked, how far they scrolled, where they left), never as identities. Cite session ids so the CRO lead can open the recording in Clarity themselves; do not claim to have watched a video.

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

  • Watch links open in the Clarity UI and require a project team member to be signed in.
  • count is a SAMPLE size (Microsoft caps it at 250), not the total number of matching sessions.
  • Sessions shorter than a few seconds carry little signal; sort by SessionClickCount_DESC or SessionDuration_DESC for CRO evidence.
  • If Microsoft changes the field names the tool still returns them as received; adapt the summary to what is there.
  • An HTTP 5xx is reported with Clarity's text and the exact body sent (no silent retry); if it persists, give that message to the Scalix team.