Skip to main content
Glama

Mixpanel MCP by usefulapi

Retention report

mixpanel_retention
Read-only

Cohort retention: of users who did born_event, how many came back and did event over subsequent intervals. Query API: GET /retention.

Input Schema

NameRequiredDescriptionDefault
unitNoInterval unit. Default day.
eventNoReturning event to measure. If omitted, any event counts.
whereNoFilter expression applied to the returning event.
to_dateYesEnd date yyyy-mm-dd (inclusive).
intervalNoUnits per bucket (<=90 if days). Default 1.
from_dateYesStart date yyyy-mm-dd (inclusive).
born_eventNoThe defining first event for a birth cohort. Required when retention_type=birth.
born_whereNoFilter expression applied to born_event.
interval_countNoNumber of intervals to report.
retention_typeNobirth = first-time retention (default), compounded = recurring.

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

A3.5/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes this as a safe read operation, so the bar is lower. The description adds the backend endpoint (GET /retention), which is minor context, but says nothing about return shape, pagination, or query limits. With safety already covered by annotations, this is adequately but not richly informative.

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

Conciseness4/5

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

Two tight clauses: the retention definition first, the endpoint second. Nothing is wasted and the core meaning is front-loaded. It is brief enough to be efficient without being cryptic.

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 a 10-parameter tool, the schema fully documents every parameter, and annotations cover the safety profile, so the description's job is mainly to convey the analytical intent. It does that well, and no output schema exists that would need explaining. It is complete enough to call correctly, though not exhaustively descriptive.

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 all 10 parameters – including the non-obvious born_event, retention_type, and interval semantics – are already documented in the schema. The description adds no syntax, format, or default detail beyond what the schema provides, so the baseline of 3 applies.

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

Purpose4/5

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

The description states a specific analytical operation: cohort retention measuring how many users who did `born_event` returned to do `event` over subsequent intervals. It maps cleanly to the retention concept and the GET /retention endpoint. It does not explicitly contrast itself with siblings like mixpanel_segmentation or mixpanel_query_funnel, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

Usage is implied by the retention framing but there is no explicit statement of when to reach for this tool versus segmentation or funnel analysis, nor any exclusions or prerequisites. An agent must infer from the name and description that this is the cohort-retention-report choice.

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.