Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Analytics sessions

analytics_sessions
Read-only

Use when you need how long sessions last, not individual session rows. Returns a duration histogram, the engaged percentage, and the median bucket. For raw records, use sessions. 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_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesProject name

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 real context beyond that: the three outputs produced (duration histogram, engaged percentage, median bucket), the auth requirement, and the caveat that the data is a synthetic demo for agentanalytics-demo. It stops short of describing pagination or bucket configuration, which keeps it at 4.

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 most important information — purpose and the routing to 'sessions' — is front-loaded in the first two sentences, with the demo and auth caveats trailing as short clauses. The final two sentences are terse and slightly disjointed, but each carries a fact an agent needs.

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 present, the description is not obliged to document return shape, and with one fully-described parameter the input side is covered. Purpose, alternative routing, dataset nature, and auth are all present; only minor operational detail (bucket granularity, what 'engaged' means) is absent, which is acceptable for a simple aggregate tool.

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?

There is a single parameter ('project') with 100% schema description coverage, so the schema carries the meaning and a baseline of 3 applies. The description never elaborates on what 'project' accepts or how it relates to the auth/sign-in note, adding nothing beyond structured fields.

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

Purpose5/5

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

The description names a concrete analytic output (session duration distribution) and explicitly contrasts it with the sibling that returns rows: 'not individual session rows'. An agent can distinguish analytics_sessions from sessions without opening either schema.

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

Usage Guidelines5/5

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

It states both the condition for use ('when you need how long sessions last') and the alternative for the other case ('For raw records, use sessions'), plus an auth prerequisite ('Sign in for your projects'). That is explicit when/when-not/alternative 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