Skip to main content
Glama

Mixpanel MCP by usefulapi

Segment an event

mixpanel_segmentation
Read-only

Count/segment/filter a single event over a date range. e.g. 'Signed up' by country last week. Params on/where use Mixpanel segmentation expressions like properties["$country_code"]. Query API: GET /segmentation. (Upstream maintenance mode — for saved reports prefer mixpanel_query_insights.)

Input Schema

NameRequiredDescriptionDefault
onNoProperty expression to segment on, e.g. properties["$city"].
typeNogeneral | unique | average. Default general.
unitNoBucket size. Default day.
eventYesSingle event name to analyze (not an array).
limitNoTop N property values (only if `on` set). Default 60.
whereNoFilter expression, e.g. properties["$os"]=="iOS".
to_dateYesEnd date yyyy-mm-dd (inclusive).
from_dateYesStart date yyyy-mm-dd (inclusive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With readOnlyHint already declaring safety, the description still adds real operational context: the underlying endpoint (GET /segmentation), the expression dialect for `on`/`where`, and an upstream maintenance-mode warning that steers toward alternatives. It does not cover rate limits or the shape of the returned time series, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short clauses, each carrying distinct information: purpose, example, expression syntax, endpoint, and the maintenance caveat. Front-loaded with the verb phrase and free of filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter read tool with no output schema, the description supplies purpose, syntax dialect, endpoint, and a fallback alternative. It omits any indication of the response structure (time-bucketed counts vs. breakdown series), which is the one thing an agent might still guess at.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all eight parameters including enums, defaults, and limits. The description only restates that `on`/`where` take segmentation expressions, adding essentially no semantics beyond the schema's own examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb set (count/segment/filter) on a single named resource (event) over a date range, and the concrete example "'Signed up' by country last week" makes the scope unambiguous. It is clearly distinguishable from the funnel/retention/JQL siblings the agent might otherwise pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a routing rule: for saved reports prefer mixpanel_query_insights, and the worked example shows the intended use case. It does not state when to reach for mixpanel_jql or retention instead, so the alternative coverage is partial rather than exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.