Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Analytics insights

analytics_insights
Read-only

Use when you need whether traffic is up or down versus the previous period. Returns events, users, bounce rate, and session duration with the trend. For the time series, use analytics_overview. 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_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoComparison period7d
projectYesProject name

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, openWorldHint=false and destructiveHint=false, so safety is covered; the description adds genuinely non-obvious context instead of repeating it. It discloses that the data is a synthetic demo (a material caveat for interpreting results) and that sign-in is required for real projects. An output schema exists, so the metric list is supplementary rather than necessary.

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?

Four short sentences, with the usage trigger and the sibling routing front-loaded ahead of the caveats. The last two fragments ('Synthetic demo for agentanalytics-demo.' / 'Sign in for your projects.') are terse to the point of slight ambiguity but each carries real information, so there is little waste.

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 two-parameter read tool with full schema coverage, annotations and an output schema, the description covers the essentials: trigger, metric scope, alternative routing, data authenticity and auth. Only the handling of an omitted period (default 7d) and per-project scoping are left implicit, which is a minor gap given the schema.

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 coverage is 100% and both parameters are documented ('Project name', 'Comparison period' with an enum and a 7d default), so the schema carries the burden. The description only reinforces that the period is a comparison baseline, adding no format or selection guidance beyond the enum. Baseline 3 applies.

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 states a concrete capability: comparing traffic against the previous period with events, users, bounce rate and session duration. It also distinguishes itself from analytics_overview by reserving time series for that sibling. The opening phrasing ('whether traffic is up or down') is slightly informal but still identifies the resource and the comparison semantics.

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?

It gives an explicit trigger ('when you need whether traffic is up or down versus the previous period') and names a concrete alternative for the adjacent need ('For the time series, use analytics_overview'). It stops short of stating when-not to use it, e.g. for per-page or breakdown needs, which keeps it below a 5.

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