get-clarity-data
Retrieve Microsoft Clarity analytics data, filtered by dimensions like Browser, Device, or Country, and extract metrics such as Scroll Depth or Engagement Time for up to 3 days using the Clarity Data Export MCP Server.
Instructions
Fetch Microsoft Clarity analytics data
Input Schema
| Name | Required | Description | Default | 
|---|---|---|---|
| context | No | Context about what the user was asking about | |
| dimensions | No | Up to 3 dimensions to filter by (Browser, Device, Country/Region, OS, Source, Medium, Campaign, Channel, URL) | |
| metrics | No | Metrics to retrieve (Scroll Depth, Engagement Time, Traffic, Popular Pages, Browser, Device, OS, Country/Region, etc.) | |
| numOfDays | Yes | Number of days to retrieve data for (1-3) | |
| token | No | Your Clarity API token (optional if provided via environment or command line) | 
Input Schema (JSON Schema)
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "properties": {
    "context": {
      "description": "Context about what the user was asking about",
      "type": "string"
    },
    "dimensions": {
      "description": "Up to 3 dimensions to filter by (Browser, Device, Country/Region, OS, Source, Medium, Campaign, Channel, URL)",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "metrics": {
      "description": "Metrics to retrieve (Scroll Depth, Engagement Time, Traffic, Popular Pages, Browser, Device, OS, Country/Region, etc.)",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "numOfDays": {
      "description": "Number of days to retrieve data for (1-3)",
      "maximum": 3,
      "minimum": 1,
      "type": "number"
    },
    "token": {
      "description": "Your Clarity API token (optional if provided via environment or command line)",
      "type": "string"
    }
  },
  "required": [
    "numOfDays"
  ],
  "type": "object"
}