Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Analytics paths

analytics_paths
Read-only

Use when you need the session paths that reach a goal event. Returns a bounded tree from entry pages to the goal, a drop-off, or truncation. 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>",
      "goal_event": "<goal_event>"
    },
    "name": "analytics_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoLookback period30d
projectYesProject name
max_stepsNoMax mixed page/event steps before truncation
goal_eventYesGoal event to attribute within the same session
path_limitNoMax children kept per node
entry_limitNoMax entry pages to include
candidate_session_capNoBound on candidate sessions scanned

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 a safe read-only, closed-world, non-destructive profile, and the description adds genuine context on top: results are a bounded tree, truncation and drop-off are possible outcomes, and sign-in is required for projects. The only gap is that it does not quantify the default bounds or mention the candidate_session_cap scan cost.

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?

Three short sentences, front-loaded with the usage condition and output shape, with no filler in the first two. The closing "Synthetic demo for agentanalytics-demo. Sign in for your projects." is slightly boilerplate but does carry a real auth/demo caveat.

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 7-parameter tool with full schema coverage, an output schema, and complete annotations, the description supplies the missing pieces: when to use it, what the bounded-tree return looks like, and that truncation can occur. Only the auth mechanics and scan-cost implications are left thin.

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?

With 100% schema description coverage across all 7 parameters, the schema already carries the parameter meaning and the description correctly stays out of it. It only implicitly links its truncation/drop-off language to max_steps and the various limits, adding marginal meaning beyond the schema.

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 a specific resource (session paths reaching a goal event) and describes the return shape as a bounded tree from entry pages to the goal, with drop-off or truncation. It is clear enough to distinguish from a plain sessions or pages listing, though it never explicitly contrasts itself with funnel-style siblings.

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 the session paths that reach a goal event" gives a concrete triggering condition tied to the required goal_event parameter. It stops short of naming exclusions or pointing to an alternative (e.g. funnel vs. path analysis), so the agent must infer when a different analytics tool is better.

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