Skip to main content
Glama

Get site analytics

get_site_analytics
Read-onlyIdempotent

Aggregated analytics for a site: request totals, unique visitors, bounce rate, top pages, cache hit rate, availability, performance percentiles (avg/p95/p99), and traffic breakdown by geography, referrer, and user-agent. Uses the GraphQL metrics endpoints (not nifex).

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": {
      "site_name": "<site_name>"
    },
    "name": "get_site_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNoTime window (default 24h)24h
site_nameYesName of the site

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is fully covered. The description adds one genuinely useful behavioral fact — that data comes from GraphQL metrics endpoints rather than nifex — which hints at data source and possible freshness/cost differences. It omits any mention of data latency, aggregation windowing, or cost for the wide 30d query.

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?

It is front-loaded with the resource and metric inventory, then closes with the implementation note, so the reader gets the core answer immediately. The metric enumeration is long but each item is a distinct capability, so little wording is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape needn't be explained, and the annotations carry the safety profile. What is missing for a tool with four overlapping analytics siblings is disambiguation guidance and any note on data freshness or aggregation semantics — the GraphQL-vs-nifex note gestures at this but doesn't resolve it.

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%: site_name is documented and range has a full enum plus a stated default of 24h. The description adds no further meaning about parameters, so the baseline 3 applies — the schema does all the work here.

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 opens with a specific verb+resource ('Aggregated analytics for a site') and then enumerates the exact metric families returned (request totals, unique visitors, bounce rate, cache hit rate, p95/p99, traffic breakdowns), so an agent knows precisely what comes back. It does not, however, distinguish itself from close siblings such as get_site_traffic, get_site_bandwidth, get_site_uptime, or get_site_overview, whose scopes overlap with these metrics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: by listing a broad set of metrics, the description suggests this is the tool to reach for when you want a wide analytics snapshot rather than a single-dimension read. There is no explicit 'use this instead of get_site_traffic when...' routing despite several sibling tools covering overlapping data, and no stated prerequisites.

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