Connect Microsoft Clarity to Toolspoke
Read session recordings, dashboard analytics, and behaviour insights for a Clarity project. Toolspoke gives your agents 3 of its actions, and you decide which ones each project allows.
- Connection
- Sandboxed MCP server
- Authentication
- Data Export API token
- Actions exposed
- 3
- What a call bills
- Sandbox time only
- Adapter
- Maintained by Toolspoke
- Category
- Analytics
Connected in three steps
Install Microsoft Clarity
Open the marketplace in your workspace, add Microsoft Clarity to the project your agents work in, and it appears on the gateway immediately.
Connect the credential
Provide the credential Microsoft Clarity asks for. Where to get it, and what it has to be able to reach, is the next section.
Give it to an agent
Describe the job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. It can use every Microsoft Clarity action the project leaves on.
The whole setup, from Microsoft Clarity's side to the first question: How to connect Microsoft Clarity to Toolspoke
Where the agent answers
Slack
Ask it in a channel or a thread, and it replies in the thread it was asked in.
Email
Email it. Each write waits for a person's go-ahead unless that action is allowed in advance.
GitHub
Mention it on a pull request, and it answers there.
Schedule
A routine wakes it on a schedule, or when a new item matches.
Any agent in the project can use Microsoft Clarity, and only the actions the project leaves on.
What Microsoft Clarity asks for
Data Export API token. You provide it once, when you install the connector. Toolspoke encrypts it at rest and decrypts it only for the length of a single call, and the gateway attaches it to the outbound request itself, so it is never part of the arguments an agent sends.
- Data Export API tokenRequired
- Clarity → Settings → Data Export → Generate new API token. Requires project admin. A token reaches only the project that issued it, so install this tool once per Clarity project.
- eyJhbGciOi…
What an agent can do in Microsoft Clarity
3 actions, each one declared by name in the connector. A workspace policy grants a person all of them, a hand-picked selection, everything on the read side, everything on the write side, or none.
3 read, none write, none destructive
Reads
3Fetches data and changes nothing.
query_analytics_dashboardAsk for Clarity dashboard metrics in plain English and get the matching rows back. Handles traffic, popular pages, dead and rage clicks, script errors, scroll depth, engagement time, and breakdowns by browser, device, OS, country, source or URL. Ask one thing per call and always name the time range, for example 'dead clicks by URL over the last 3 days'. This reads the project the installed credential belongs to; it takes no project argument.
list_session_recordingsList session recordings with playback links, filtered by behaviour, device, geography or URL. Use this when you need to watch what a user actually did, dead clicks, rage clicks and quickbacks are only diagnosable from a recording. filters.date is required and is UTC ISO 8601.
query_documentationSearch Microsoft Clarity's own documentation for setup, feature, troubleshooting and integration guidance. Use it to answer how Clarity itself works rather than to read any project's data.
What it will not do
The gateway enforces each of these, so they can be stated flatly.
- It cannot call anything else
- The 3 actions above are the whole of it. A call to any other name is refused before it reaches Microsoft Clarity rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time.
- It only reads
- Every action here reads. Nothing this connector can do changes anything in Microsoft Clarity.
- It reaches no further than your credential
- Toolspoke holds no access to Microsoft Clarity of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either.
- It never hears from Microsoft Clarity
- Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Microsoft Clarity. An agent has to ask.
- It does not smooth over provider limits
- Toolspoke does not retry, queue or back off around Microsoft Clarity's own rate limits. A call that Microsoft Clarity refuses comes back to the agent as a failed call.
Using Microsoft Clarity with an agent
Written by whoever built this connector. Agents read the same text on demand through read_guide, so what is below is what they see.
Version 2.0.1 of Microsoft's server hides why a request failed. A rejected token, the project's exhausted daily limit and an error inside Clarity all come back as the same sentence, "An error occurred while fetching the data.", as text rather than as an error. Read that sentence as a failure, not as an empty result, and do not retry it in a loop: when the cause is the daily limit, every retry fails the same way until the next day. "No Clarity API token provided" means the install has no credential.
The project has only about ten requests a day, shared by every agent and person using the install. Ask for everything one question needs at once, and name the time range inside the question.
Before you connect it
What can an agent do in Microsoft Clarity?
3 named actions: 3 that only read. They include query_analytics_dashboard, list_session_recordings and query_documentation. Nothing outside that list is reachable: the connector declares each operation by name rather than proxying whatever an agent asks for.
What credentials does the Microsoft Clarity connector need?
Data Export API token. The connector asks for data export api token. Values are encrypted at rest and attached to the outbound request by the gateway, so they are never part of the arguments an agent sends and never reach the audit log.
How does an agent get to use Microsoft Clarity?
Install Microsoft Clarity in a project and every agent in that project can use the actions the project leaves on. Describe a job in one sentence and the builder proposes the instructions, the toolkits it needs, a schedule and where it should answer, or start from a catalogue agent. The agent answers when someone asks it in Slack, emails it or mentions it on a GitHub pull request, or when its routine wakes it.
What does the Microsoft Clarity connector not do?
The 3 actions above are the whole of it. A call to any other name is refused before it reaches Microsoft Clarity rather than forwarded on, and connecting your account does not add to the list: it is fixed by the connector, not discovered at run time. Every action here reads. Nothing this connector can do changes anything in Microsoft Clarity. Toolspoke holds no access to Microsoft Clarity of its own. Every call carries the credential you stored and nothing besides, so whatever that credential cannot reach, this connector cannot reach either. Nothing is pushed to it. There is no webhook, no subscription and no polling, so this connector cannot notice by itself that something changed in Microsoft Clarity. An agent has to ask. Toolspoke does not retry, queue or back off around Microsoft Clarity's own rate limits. A call that Microsoft Clarity refuses comes back to the agent as a failed call.
Can I limit which actions an agent can call?
Yes, in two places. The project switches Microsoft Clarity's actions on and off one at a time, for everyone in the project at once, and the screen groups them by read, write and destructive so turning off everything that deletes is one click. An individual agent key can then be narrowed further, to particular toolkits in a project and to particular actions in a toolkit. Whatever it was granted, a key never reaches a project its owner cannot.
What gets recorded when an agent calls Microsoft Clarity?
Every attempt, with the agent that made it and the person that agent belongs to, the full request payload, the response payload, the status, the duration, and what the call cost in sandbox time and model tokens. Values whose key names a secret are masked out before the record is shown to anyone. An operation the connector marks as not retained never has its response body written at all, so the gateway keeps no second copy of what was read.
More analytics connectors
Browse all of themConnect Microsoft Clarity to Toolspoke
Add Microsoft Clarity to a project and give it to an agent.