Get profile stats
get_profile_statsGetProfileStats returns aggregate statistics, device/browser/location context from the latest event, per-day heatmap data (last 60 days), and profile properties for a profile. Resolves aliases so merged anonymous events are included. Traffic tagged as a bot at ingest is excluded unless include_bots is true, so a profile whose events are all bot-tagged omits stats entirely and returns no heatmap days — not a NotFound, and profile properties are still returned.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_profile_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | The id of the project, from list_projects. | |
| distinct_id | No | ||
| include_bots | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stats | No | ||
| heatmap | No | ||
| properties | No |