Skip to main content
Glama

mixpanel

query_profiles

Retrieve and filter Mixpanel user profiles by specific properties or identifiers. Analyze user behavior and extract detailed profile data for targeted insights.

Instructions

Query Mixpanel user profiles with filtering options. Useful for retrieving detailed user profiles, filtering by specific properties, and analyzing user behavior across different dimensions.

Input Schema

NameRequiredDescriptionDefault
as_of_timestampNoThis parameter is only useful when also using 'behaviors'
behaviorsNoIf you are exporting user profiles using an event selector, you use a 'behaviors' parameter in your request
data_group_idNoThe ID of the group key, used when querying group profiles
distinct_idNoA unique identifier used to distinguish an individual profile
distinct_idsNoA JSON array of distinct_ids to retrieve profiles for. Example: '["id1", "id2"]'
filter_by_cohortNoTakes a JSON object with a single key called 'id' whose value is the cohort ID. Example: '{"id":12345}'
include_all_usersNoOnly applicable with 'filter_by_cohort' parameter. Default is true
output_propertiesNoA JSON array of names of properties you want returned. Example: '["$last_name", "$email", "Total Spent"]'
pageNoWhich page of the results to retrieve. Pages start at zero. If the 'page' parameter is provided, the session_id parameter must also be provided
project_idNoThe Mixpanel project ID. Optional since it has a default.. Optional since it has a default.
session_idNoA string id provided in the results of a previous query. Using a session_id speeds up api response, and allows paging through results
whereNoAn expression to filter users (or groups) by. Using the following grammar: <expression> ::= 'properties["' <property> '"]' | <expression> <binary op> <expression> | <unary op> <expression> | <math op> '(' <expression> ')' | <typecast op> '(' <expression> ')' | '(' <expression> ')' | <boolean literal> | <numeric literal> | <string literal> <binary op> ::= '+' | '-' | '*' | '/' | '%' | '==' | '!=' | '>' | '>=' | '<' | '<=' | 'in' | 'and' | 'or' <unary op> ::= '-' | 'not' <math op> ::= 'floor' | 'round' | 'ceil' <typecast op> ::= 'boolean' | 'number' | 'string' <property> ::= 'properties["' <property name> '"]'
workspace_idNoThe ID of the workspace if applicable

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "as_of_timestamp": { "description": "This parameter is only useful when also using 'behaviors'", "type": "number" }, "behaviors": { "description": "If you are exporting user profiles using an event selector, you use a 'behaviors' parameter in your request", "type": "number" }, "data_group_id": { "description": "The ID of the group key, used when querying group profiles", "type": "string" }, "distinct_id": { "description": "A unique identifier used to distinguish an individual profile", "type": "string" }, "distinct_ids": { "description": "A JSON array of distinct_ids to retrieve profiles for. Example: '[\"id1\", \"id2\"]'", "type": "string" }, "filter_by_cohort": { "description": "Takes a JSON object with a single key called 'id' whose value is the cohort ID. Example: '{\"id\":12345}'", "type": "string" }, "include_all_users": { "description": "Only applicable with 'filter_by_cohort' parameter. Default is true", "type": "boolean" }, "output_properties": { "description": "A JSON array of names of properties you want returned. Example: '[\"$last_name\", \"$email\", \"Total Spent\"]'", "type": "string" }, "page": { "description": "Which page of the results to retrieve. Pages start at zero. If the 'page' parameter is provided, the session_id parameter must also be provided", "type": "number" }, "project_id": { "description": "The Mixpanel project ID. Optional since it has a default.. Optional since it has a default.", "type": "string" }, "session_id": { "description": "A string id provided in the results of a previous query. Using a session_id speeds up api response, and allows paging through results", "type": "string" }, "where": { "description": "An expression to filter users (or groups) by. Using the following grammar: <expression> ::= 'properties[\"' <property> '\"]'\n | <expression> <binary op> <expression>\n | <unary op> <expression>\n | <math op> '(' <expression> ')'\n | <typecast op> '(' <expression> ')'\n | '(' <expression> ')'\n | <boolean literal>\n | <numeric literal>\n | <string literal>\n <binary op> ::= '+' | '-' | '*' | '/' | '%' | '==' | '!=' |\n '>' | '>=' | '<' | '<=' | 'in' | 'and' | 'or'\n <unary op> ::= '-' | 'not'\n <math op> ::= 'floor' | 'round' | 'ceil'\n<typecast op> ::= 'boolean' | 'number' | 'string'\n <property> ::= 'properties[\"' <property name> '\"]'", "type": "string" }, "workspace_id": { "description": "The ID of the workspace if applicable", "type": "string" } }, "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