Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Sessions

sessions
Read-only

Use when you need individual session records, such as ids, timing, and pages, rather than a duration chart. Returns that session list. For the histogram and engaged share, use analytics_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": "sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results
sinceNoStart date
projectYesProject name

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 cover the read-only, non-destructive, closed-world safety profile, and the description adds useful context: results are synthetic demo data and signing in is required for your projects. It doesn't mention pagination behavior or the meaning of the limit cap, which keeps it from a 5.

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-loads the when-to-use condition and the sibling distinction, then adds auth/demo caveats in short sentences. The sentence 'Returns that session list' is mildly redundant with the opening but costs little.

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 simple three-parameter read tool with full schema coverage and annotations, the description covers selection, output shape, auth, and data provenance. Only pagination/limit semantics remain unstated, a minor gap given no output schema pressure.

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 all three parameters (limit, since, project) are already documented. The description mentions the returned fields but adds no syntax, format, or semantics for the parameters beyond the schema, which is the expected baseline.

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?

States a specific verb and resource (individual session records with ids, timing, pages) and explicitly differentiates from the duration-chart sibling analytics_sessions. An agent can distinguish the two 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?

Gives an explicit when-to-use condition (need individual session records rather than a duration chart) and names the alternative tool for the histogram and engaged share. Nothing about selection is left to inference.

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