Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Analytics breakdown

analytics_breakdown
Read-only

Use when you need the top values of one property, such as path, referrer, or utm_source. Returns those values ranked by count. For entry and exit pages, use analytics_pages. 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_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLookback window in days
eventNoFilter by event name (e.g. page_view)
limitNoMax results
projectYesProject name
propertyNoProperty key to group by (e.g. path, referrer, utm_source)path

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/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 the safety profile is covered. The description adds that results are ranked by count, which is useful output context, but says nothing about tie handling, pagination, or result truncation beyond the limit parameter. With an output schema present, this modest addition is appropriate but not 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 efficient. However, the trailing lines "Synthetic demo for agentanalytics-demo. Sign in for your projects." are boilerplate that consume space without telling the agent how to invoke the tool correctly; only the sign-in hint conveys mild auth context.

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 read-only aggregation tool with full parameter documentation and an output schema, the description covers purpose, selection criteria, and one routing rule. The remaining gap is minor: no explicit statement that days and event scope the aggregation, though that is inferable from 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 description coverage is 100%, so every parameter is already documented with type, default, and bounds. The description repeats the property examples (path, referrer, utm_source) that the schema already lists and adds no new meaning about how days, event, and limit combine. Baseline 3 applies when the schema carries the semantics.

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 operation on a specific resource: top values of one property (path, referrer, utm_source) ranked by count. It also names the sibling it is not (analytics_pages) for entry/exit pages, so an agent can distinguish it without opening the schema.

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 top values of one property" plus an explicit exclusion routing entry/exit page needs to analytics_pages is clear, actionable guidance. It does not address when to prefer analytics_overview, analytics_insights, or analytics_funnel, so the alternative coverage is partial.

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