Skip to main content
Glama

Get environment analytics

kinsta_get_analytics
Read-only

Traffic and resource analytics for one environment: visits, bandwidth, CDN bandwidth, disk space, response codes, visit dispersion, or the top countries, cities, browsers, hosts, referrers, user agents or ASNs. Choose a time_span or a from/to date range (yyyy-mm-dd). The company id is filled in automatically. GET /sites/environments/{env_id}/analytics/{metric}.

Input Schema

NameRequiredDescriptionDefault
toNoRange end, yyyy-mm-dd.
fromNoRange start, yyyy-mm-dd (use with to).
metricYesWhich analytics report.
time_spanNoPeriod to report on: 24_hours, 7_days, 30_days or 60_days (default 7_days; disk space has no 24_hours).
time_zoneNoOnly for metric diskspace: hour offset from UTC such as 02:00 or -05:00 (default 00:00).
environment_idYesKinsta environment id (a UUID; from kinsta_list_sites with include_environments, or kinsta_list_site_environments).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lowered. The description adds useful operational context — the auto-filled company id and the REST path — but says nothing about pagination, result limits, or rate limits for what is clearly a read-only reporting call.

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?

Three sentences, front-loaded with the resource and metric list, then the parameter-choice rule, then the endpoint. The 13-metric enumeration is long but earns its place by telling the agent exactly what reports exist; no filler sentences.

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?

There is no output schema, so the description carries the return-value burden — and it largely does by naming every metric's data dimension (visits, bandwidth, disk space, top countries, etc.). Minor gap: it doesn't indicate result shape or whether time_series data is returned per metric.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds genuine meaning by framing time_span and from/to as alternatives ('Choose a time_span or a from/to date range') and confirming the yyyy-mm-dd format. That relational guidance is not present in the schema itself.

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?

The description names a specific verb+resource ('Traffic and resource analytics for one environment') and enumerates the actual metric families returned, which lets an agent distinguish this reporting tool from siblings like kinsta_get_site_usage or kinsta_get_logs without opening the schema. It even pins the underlying endpoint GET /sites/environments/{env_id}/analytics/{metric}.

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 clear invocation context: pick either a time_span or a from/to range, and notes that company id is filled automatically so the caller need not supply it. It does not, however, contrast this tool against any alternative (e.g. get_site_usage vs analytics) or state exclusions for when not to use it.

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.