Skip to main content
Glama

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

TableJSON 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. First observed

TDQS

A3.5/5.0
Behavior4/5

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

The description adds context beyond annotations (readOnlyHint=true) by explaining the query formula and API endpoint. It is consistent with read-only behavior. No contradictions.

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?

The description is concise (two sentences), front-loaded with the core purpose, and includes an API reference. Efficient use of words.

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

Completeness2/5

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

For a tool with 10 parameters, no output schema, and complex retention logic, the description is insufficient. It does not explain the output format (e.g., retention percentages or table structure), which is needed for invocation.

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 parameters. The description adds a brief summary but no additional meaning beyond the schema. Baseline 3 is appropriate.

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 clearly states it computes cohort retention, specifying the key events (born_event and event). It distinguishes from siblings by focusing on retention, but does not explicitly differentiate from other Mixpanel tools.

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?

The description implies usage for cohort retention analysis but does not provide guidance on when to use this tool versus siblings like mixpanel_segmentation or mixpanel_query_funnel. No when-not-to-use or alternative suggestions.

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.