Skip to main content
Glama

mixpanel

query_segmentation_report

Analyze event data by segmenting and filtering based on user properties. Use this tool to compare performance across user groups, identify trends, and extract actionable insights from Mixpanel analytics.

Instructions

Get data for an event, segmented and filtered by properties. Useful for breaking down event data by user attributes, comparing performance across segments, and identifying which user groups perform specific actions.

Input Schema

NameRequiredDescriptionDefault
eventYesThe event that you wish to get data for. Note: this is a single event name, not an array
formatNoCan be set to 'csv'
from_dateYesThe date in yyyy-mm-dd format to begin querying from (inclusive)
intervalNoOptional parameter in lieu of 'unit' when 'type' is not 'general'. Determines the number of days your results are bucketed into
limitNoReturn the top property values. Defaults to 60. Maximum value 10,000. This parameter does nothing if 'on' is not specified
onNoThe property expression to segment the event on
project_idNoThe Mixpanel project ID. Optional since it has a default.
to_dateYesThe date in yyyy-mm-dd format to query to (inclusive)
typeNoThe type of analysis to perform, either general, unique, or average, defaults to general
unitNoThe buckets into which the property values that you segment on are placed. Default is 'day'
whereYesAn expression to filter events by based on the grammar: <expression> ::= 'properties["' <property> '"]' | <expression> <binary op> <expression> | <unary op> <expression> | <math op> '(' <expression> ')' | <string literal> <binary op> ::= '+' | '-' | '*' | '/' | '%' | '==' | '!=' | '>' | '>=' | '<' | '<=' | 'in' | 'and' | 'or' | <unary op> ::= '-' | 'not'
workspace_idNoThe ID of the workspace if applicable

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "event": { "description": "The event that you wish to get data for. Note: this is a single event name, not an array", "type": "string" }, "format": { "description": "Can be set to 'csv'", "enum": [ "csv" ], "type": "string" }, "from_date": { "description": "The date in yyyy-mm-dd format to begin querying from (inclusive)", "type": "string" }, "interval": { "description": "Optional parameter in lieu of 'unit' when 'type' is not 'general'. Determines the number of days your results are bucketed into", "type": "number" }, "limit": { "description": "Return the top property values. Defaults to 60. Maximum value 10,000. This parameter does nothing if 'on' is not specified", "type": "number" }, "on": { "description": "The property expression to segment the event on", "type": "string" }, "project_id": { "description": "The Mixpanel project ID. Optional since it has a default.", "type": "string" }, "to_date": { "description": "The date in yyyy-mm-dd format to query to (inclusive)", "type": "string" }, "type": { "description": "The type of analysis to perform, either general, unique, or average, defaults to general", "enum": [ "general", "unique", "average" ], "type": "string" }, "unit": { "description": "The buckets into which the property values that you segment on are placed. Default is 'day'", "enum": [ "minute", "hour", "day", "month" ], "type": "string" }, "where": { "description": "An expression to filter events by based on the grammar: <expression> ::= 'properties[\"' <property> '\"]'\n | <expression> <binary op> <expression>\n | <unary op> <expression>\n | <math op> '(' <expression> ')'\n | <string literal>\n <binary op> ::= '+' | '-' | '*' | '/' | '%' | '==' | '!=' |\n '>' | '>=' | '<' | '<=' | 'in' | 'and' | 'or'\n | <unary op> ::= '-' | 'not'", "type": "string" }, "workspace_id": { "description": "The ID of the workspace if applicable", "type": "string" } }, "required": [ "event", "from_date", "to_date", "where" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dragonkhoi/mixpanel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server