Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Analytics retention

analytics_retention
Read-only

Use when you need what share of users come back. Returns cohort retention by day, week, or month. Pass event to switch to event-based retention. Synthetic demo for agentanalytics-demo. Sign in for your projects.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>"
    },
    "name": "analytics_retention"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventNoFirst-seen event filter (e.g. signup). Switches to event-based retention.
periodNoCohort grouping periodweek
cohortsNoNumber of cohort periods (max: day=30, week=12, month=12)
projectYesProject name
returning_eventNoWhat counts as 'returned' (defaults to same as event)

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered; the description adds genuinely new behavior: event-based mode switching, the period granularity of results, that this is synthetic demo data for agentanalytics-demo, and that sign-in is required for projects. It does not discuss limits on cohort size or rate behavior, but the additions are substantive beyond the annotations.

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?

Five short sentences with the trigger condition front-loaded and no filler. The final fragments ("Synthetic demo for agentanalytics-demo. Sign in for your projects.") are terse and slightly telegraphic, which costs a point on polish but not on economy.

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?

With an output schema covering return values and annotations covering the safety profile, the description only needs to supply purpose, mode semantics, and environment caveats — all of which are present, including the auth requirement and demo-data warning. Only the cohort-count limits and cross-sibling positioning are left implicit.

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 every parameter is already documented in the schema, including the event, period, cohorts, project, and returning_event fields. The description only echoes the mode-switching behavior of event and the day/week/month choice for period, adding little syntax or constraint detail beyond the schema — the baseline 3 for full coverage.

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 names the resource precisely — cohort retention — and states the output shape (retention by day/week/month), which distinguishes it from sibling analytics tools like funnel, breakdown, or pages. It stops short of explicitly contrasting with any named sibling, so it lands at clear-but-undifferentiated rather than a 5.

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?

"Use when you need what share of users come back" gives a concrete selection condition, and "Pass event to switch to event-based retention" tells the agent how to move between the two modes. No alternatives among the ~30 siblings are named and no exclusion cases are given, so it is clear context without routing.

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.

Resources