Skip to main content
Glama

Get site traffic analytics

get_site_analytics
Read-onlyIdempotent

Return a privacy-safe traffic summary for a site over the last period days (default 7): total page views, distinct-visitor count, top pages, daily counts, device/browser breakdowns, and Web Vitals averages. Never exposes raw visitor IPs or user-agents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoSite name. Provide this or siteId.
periodNoNumber of days to aggregate over (1-90). Defaults to 7.
siteIdNoSite id. Provide this or name.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
devicesYes
browsersYes
topPagesYesUp to 10 most-viewed paths, descending.
pageViewsYesTotal page views in the window.
webVitalsYes
request_idNoServer-assigned request correlation id. Quote it when contacting support.
dailyCountsYesPage views per day.
uniqueVisitorsYesDistinct-visitor COUNT (by IP). Raw IPs are never returned.

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint, idempotentHint, and destructiveHint. The description adds value by stating the tool is 'privacy-safe' and 'never exposes raw visitor IPs or user-agents,' providing behavioral guarantees beyond the annotations. No contradiction exists.

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

Conciseness5/5

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

The description is two sentences, front-loading the core action and listing key outputs concisely. Every sentence adds value: the first details what is returned, the second adds a privacy guarantee. No unnecessary words.

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

Completeness5/5

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

Given the tool has annotations for safety and an output schema, the description fully covers what the tool does, including specific metrics and the privacy constraint. It is complete for a read-only, idempotent analytics query tool.

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 the schema already describes all three parameters. The description mentions the 'period' parameter with its default, matching the schema. It does not add new meaning or constraints for 'name' or 'siteId'. Baseline 3 is appropriate.

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 clearly specifies the tool returns a 'traffic summary' for a site, listing detailed metrics like page views, visitor count, and breakdowns. The verb 'Return' and resource 'site traffic analytics' are explicit. The tool is unique among siblings, as none other provide analytics data.

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?

The description implies usage for obtaining site traffic analytics, but does not explicitly exclude alternatives or specify when not to use it. Given the unique nature of the tool among siblings, the context is clear enough, but lacks explicit when-to-use versus other tools.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Every tool has a clearly distinct purpose, from deployment and file management to domain configuration and analytics. Even similar-sounding tools like add_files and add_file_chunk are well-differentiated by context and use case.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case (e.g., add_custom_domain, list_sites, delete_source_file). The naming is predictable and easy to understand.

Tool Count4/5

39 tools is higher than the typical 3-15 range, but each tool serves a necessary function for a comprehensive deployment platform. The count is justified by the broad feature set, though slightly heavy.

Completeness5/5

The tool set covers the full lifecycle of site deployment, management, backup, custom domains, form handling, analytics, and source editing. There are no obvious gaps for the intended functionality.