Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Analytics funnel

analytics_funnel
Read-only

Use when you need drop-off across ordered events. Returns per-step users, conversion, and time between steps. Pass since, such as 30d, or days from 1 to 365, mapped to since as Nd. Default is 30d. 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>",
      "steps": "<steps>"
    },
    "name": "analytics_funnel"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLookback in days, mapped to since. Integer 1 to 365.
sinceNoLookback such as 30d. Default 30d.
stepsYesFunnel steps (2-8), each with an event name and optional filters
projectYesProject name
count_byNoCount by users or sessionsuser_id
breakdownNoProperty key to segment by (e.g. 'variant', 'country'). Extracted from step 1 events.
breakdown_limitNoMax breakdown groups (default 10, max 50)
conversion_window_hoursNoMax hours from step 1 to last step (default: 168 = 7 days)

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/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 elsewhere. The description does add real context beyond that: the return shape (per-step users, conversion, inter-step time), the 30d default, the 'synthetic demo' data caveat, and an auth requirement ('Sign in for your projects'). It still says nothing about the conversion window applying from step 1 to last step, or cost/limits on multi-step queries.

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?

Front-loaded with the trigger condition, then return shape, then parameter defaults, in a logical order with almost no filler. The trailing 'Synthetic demo for agentanalytics-demo' line is useful but scoped as environmental noise rather than tool behavior.

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 8 parameters, full schema coverage, an output schema, and read-only annotations, the description supplies the missing pieces an agent needs before calling: when to use it, what it returns, the default lookback, and that authentication is required. The 2-8 step limit, breakdown semantics, and conversion window are left entirely to the schema, which is acceptable but slightly incomplete for a tool whose core input is an ordered step list.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description goes further by explaining the days/since relationship – 'days from 1 to 365, mapped to since as Nd' with default 30d – which is a precedence rule the schema alone does not state. It adds nothing about steps, breakdown, or conversion_window_hours, but the key ambiguity is resolved.

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?

States a specific analysis and resource: drop-off across ordered events, returning per-step users, conversion, and inter-step time. That clearly separates it from list-style siblings, but it never names a differentiating sibling (e.g. analytics_retention or analytics_paths), so the contrast is implied rather than explicit.

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?

Opens with an explicit trigger condition – 'Use when you need drop-off across ordered events' – which is enough for an agent to pick this over a generic query tool. No when-not guidance or named alternative is given, so it stops short of full routing guidance.

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