Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
List tracking plans
MIXPANEL_MCP_LIST_TRACKING_PLANSRequired tools: Get-Business-Context (call it once per conversation, before this tool). List a project's tracking plans to find the one to read, update or delete. Entries are summaries: they carry event_count but not the events themselves. Call Get-Tracking-Plan with an entry's id for its membership. Results are paginated. If the response carries a next_cursor, pass it back as `cursor` for the following page; a null next_cursor means you have reached the end. Params: - project_id (int, required): Mixpanel project to list plans for. - name (str, optional): Case-insensitive substring of the plan name. Omit to list every plan in the project. - cursor (str, optional): next_cursor or previous_cursor from a previous call. Omit for the first page. - page_size (int, optional): Plans per page, 1 to 100. Omit to take the server default. - order (str, optional): Sort by creation time, 'desc' for newest first or 'asc' for oldest first. Omit to take the server default.
Run experiment pre launch checks
MIXPANEL_MCP_RUN_EXPERIMENT_PRE_LAUNCH_CHECKSRequired tools: Get-Business-Context (call it once per conversation, before this tool). Cross-references a draft experiment's configuration against a canonical list of pre-launch pitfalls and returns a structured PitfallReport. Call this at the **config-summary-for-approval** step before launching an experiment — once the user has chosen their primary metrics, baseline rate, MDE, cohort, etc. and the agent is summarizing the configuration for sign-off. Pitfall kinds (every one of these may appear in the returned report): - `pre_experiment_bias_likely` — retro A/A is enabled and a continuous-ish metric (continuous, retention, funnel) is configured but CUPED is off. - `high_variance_no_winsorization` — a continuous-ish metric is configured but Winsorization is off. - `multiple_primaries_no_bonferroni` — two or more primaries with no Bonferroni multiple-testing correction. - `underpowered_duration_insufficient` — expected exposures are less than half of the per-arm sample size required for the configured baseline rate and MDE. Severity: blocker. - `underpowered_duration_marginal` — expected exposures are between half and one full per-arm required sample size. - `cohort_too_small` — configured cohort cannot supply enough eligible users (per-arm target × `num_arms`) for every arm to hit its target. Pass `num_arms` for non-A/B experiments; defaults to 2. Severity: blocker. - `missing_guardrails` — no guardrail metrics configured. - `hypothesis_metric_mismatch` — the hypothesis mentions an outcome (signup, conversion, retention, revenue, etc.) that isn't represented in any configured primary metric name. - `primary_lacks_leading_indicator` — a retention-type primary is configured but no conversion- or funnel-type secondary metric is configured. Retention is lagging by construction; without a leading-indicator secondary, the agent has no earlier evidence to reason from while the experiment runs. Pass `secondary_metric_types` / `secondary_metric_count` so this pitfall can evaluate; with no secondary info supplied it silently abstains. Each pitfall carries a `severity` (`blocker` / `warning` / `fyi`) and an optional `fix_action` discriminated union (`extend_duration`, `enable_cuped`, `enable_winsorization`, `enable_bonferroni`, `add_guardrail`, `resize_cohort_or_sample`, `review_metric_alignment`) — the renderer pre-fills a corresponding `Update-Experiment` call from the fix_action so the user can accept a remediation with a single confirmation. **Blocker prevention is a form-layer concern, not Spark's.** This tool reports blockers so the agent can surface them prominently in the summary, but the experiment-creation form is what actually stops a launch when a blocker is unresolved. Don't pretend to gate the launch yourself — quote the blocker and the recommended fix_action, then defer to the form. Pitfalls are returned sorted by (severity, declaration order): blockers first, then warnings, then fyi; within a severity, the ordering above wins so data-trust risks (pre-experiment bias, variance inflation) surface before configuration nudges. All inputs other than `target_sample_size` are optional — the tool silently skips any pitfall whose inputs aren't supplied, so the agent can call it iteratively as the user fills out fields.
Run query
MIXPANEL_MCP_RUN_QUERYRequired tools: Get-Business-Context (call it once per conversation, before this tool). Run a single analytics query and return its results directly. Use this whenever the user requests a chart, a report, a metric, explore a behavior or root cause, or asks to "create a report". Returns results to chain queries iteratively. Only use skip_results=true when building a dashboard or you won't use the results. The `report` parameter must be Mixpanel report JSON as defined by Get-Query-Schema. SQL or warehouse query text is not accepted. Report types and valid `chartType` values: - insights (bar, stacked-bar, line, stacked-line, pie, table, metric): Basic report, supports different chart types, trends, and metric aggregations. - funnels (ttc, frequency, trends, steps): Conversion rates between sequential events within a time window. Requires at least 2 steps. - flows (sankey, paths): Most frequent user paths to or from events. Shows steps before/after/between events as a sankey or paths chart. - retention (curve, trend): User engagement over time. Requires exactly 2 events: an initial action and a retention action. For very simple insights queries, use this schema as the `report` parameter (it only supports chartType table, line, or bar; use the full schema from Get-Query-Schema for other chart types): { "name": "string", "metrics": [ { "eventName": "string", "measurement": { "type": "basic", "math": "total | unique" } } ], "chartType": "table | line | bar", "unit": "hour | day | week | month", "dateRange": { "type": "relative", "range": { "unit": "day | week | month", "value": "integer" } } } Event names must match the project exactly; an unrecognized name returns zeros, not an error. Pass the literal "$all_events" (insights) or "$mp_anything_event" (retention), never their UI labels "All Events"/"Any event". Funnel steps, flow steps, and behavioral breakdowns each need a specific event. Profile sources ("All User Profiles", "All <group name>(s)") are not events and cannot be queried here. Breakdowns split results by a property or by experiment variant. Each breakdown's fields must be nested under a `metric` object (do NOT place `type`/`propertyName`/`experimentId` at the breakdown's top level). For example, to split "$all_events" into individual events by the "Event Name" property: "breakdowns": [ {"metric": {"type": "property", "propertyName": "Event Name", "resource": "event"}} ] To split by experiment variant, pass the experiment `id` from List-Experiments: "breakdowns": [ {"metric": {"type": "experiment", "experimentId": "<id from List-Experiments>"}} ] For an experiment that exists only in exposure events (not returned by List-Experiments), use: {"metric": {"type": "experiment", "experimentKey": "<experiment name from exposure events>"}} A lookup table property is the pair [mapped_property, name], e.g. ["itemCategory", "department"]; List-Properties lists each one with its mapped_property in extra. When mapped_property is a custom property, the first element can instead be the mapped_property_display_name from extra. For more elaborated queries, with multiple events, filters, breakdowns, formulas or advanced measurements you must call Get-Query-Schema(report_type: 'insights'|'funnels'|'flows'|'retention') first to see the full schema for the `report` parameter. Keep responses compact: prefer short date ranges (7-30 days) or coarser granularity (week/month), and avoid combining many breakdowns with fine-grained time series.
Search entities
MIXPANEL_MCP_SEARCH_ENTITIESRequired tools: Get-Business-Context (call it once per conversation, before this tool). Search entities in a Mixpanel project: dashboards, reports, experiments, feature flags, metric trees, playlists, and heat maps. query: can be empty to browse by sort order. entity_types: set to include specific entity types. Values: insights, funnels, flows, retention, dashboard, launch-analysis, experiments, feature-flags, metric-trees, playlists, heat-maps. - Use Get-Report to fetch full details for insights, funnels, flows, and retention types. - Use Get-Dashboard to fetch full details for dashboards.
Search prior experiments
MIXPANEL_MCP_SEARCH_PRIOR_EXPERIMENTSRequired tools: Get-Business-Context (call it once per conversation, before this tool). Search the project's experiments store for prior tests on the same feature, metric, or hypothesis. Returns up to ``max_matches`` ranked matches with similarity reasons. Pass the ``metric_ids``, ``flag_key``, and ``hypothesis`` you are considering for the experiment you're setting up; the tool checks whether a similar experiment has already been run so you can surface what was learned. Provide whichever of these you have — any one is enough to get matches, and supplying more sharpens the ranking. Three deterministic signals are combined: metric_id overlap (Jaccard), flag-key similarity (exact / case-insensitive / substring / shared-token), and hypothesis-token overlap. Each match carries ``similarity_reasons`` so the agent can quote *why* a prior experiment is relevant. Pass ``exclude_experiment_id`` when ranking against an in-progress draft already saved in the store to prevent the draft trivially matching itself. ``include_archived=true`` to include archived experiments in the candidate pool.