Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Analytics pages

analytics_pages
Read-only

Use when you need entry or exit pages rather than a property ranking. Returns bounce rate, average duration, and events per session. 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_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoPage typeentry
limitNoMax results
projectYesProject name

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already state readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that metrics such as bounce rate, average duration, and events per session are returned and notes a sign-in requirement, but pagination behavior and rate limits are not described. The output schema carries return-value detail, so this is adequate rather than rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences are front-loaded and useful, stating the use case and returned metrics. The trailing notes about a synthetic demo and signing in are somewhat incidental and vague, and they dilute an otherwise compact definition.

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?

This is a simple three-parameter read tool with full schema coverage, annotations, and an output schema, so most invocation details are already structured. The description supplies the key selection context and return metrics; only the auth/demo wording is imprecise.

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%, including descriptions for type, limit, and project, so the schema documents parameter meaning. The description only alludes to entry/exit page selection and adds no syntax, defaults, limits, or required-project guidance 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 frames the tool as providing entry or exit pages and lists the metrics returned, so the resource and output are recognizable. It also distinguishes the tool from a property-ranking tool, though it never explicitly says 'returns a list of pages' or names a sibling.

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 explicitly says to use this when entry or exit pages are needed rather than a property ranking, giving a clear selection condition against one alternative. It does not cover when to choose this over related analytics views such as paths, breakdown, or sessions.

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