Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Live now

live_now
Read-only

Use when you need who is on the site right now, not a historical chart. Returns active visitors, sessions, events per minute, top pages, and recent events.

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": "live_now"
  }
}

Input Schema

NameRequiredDescriptionDefault
windowNoTime window in seconds (10-300, default 60)
projectYesProject name

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 declare readOnlyHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds the substantive payload (active visitors, sessions, events per minute, top pages, recent events), which is genuinely useful given there is no output schema. It says nothing about refresh cadence, staleness, or data volume limits for a real-time feed.

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?

Two sentences, front-loaded with the usage condition and followed by the payload list; nothing is redundant. Slightly clipped phrasing ('not a historical chart') costs a little precision but keeps it tight.

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 and no output schema, the description covers both when to call it and what comes back. The only omission is any note on how the time window shapes the returned metrics, which an agent might need to pick a sensible value.

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%, so both 'project' and the 10-300 second 'window' are already documented with ranges and defaults. The description adds no further meaning about how the window affects the counts or what units the returned rates use, so the baseline of 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?

States a specific verb and resource ('who is on the site right now') and scopes it by contrasting with historical charting, which separates it from analytics-style siblings. It stops short of naming a concrete alternative such as sessions or analytics_overview, so the differentiation is generic rather than precise.

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 who is on the site right now, not a historical chart' gives an explicit trigger and an implicit exclusion (historical analysis). It never names which sibling handles the historical case, so the agent must infer the routing from sibling names alone.

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