Skip to main content
Glama
hholen

@lodd/mcp-server

by hholen

get_analytics

Retrieve site analytics (visitors, page views, bounce rate) with automatic period comparison and optional filters by country, browser, device, or source.

Instructions

Get aggregate analytics for a site (visitors, page views, bounce rate, etc.) with automatic comparison to the previous period. Returns average_duration in seconds. Optional filters segment the result by country, browser, os, device type, UTM source, or referrer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteYesSite domain (e.g. 'example.com') or UUID
periodNoTime period: 'today', 'yesterday', '7d', '30d', '90d', or 'YYYY-MM-DD..YYYY-MM-DD'30d
filter_osNoOS substring match (e.g. 'iOS')
filter_browserNoBrowser substring match (e.g. 'Chrome')
filter_countryNo2-letter country code (e.g. 'US')
filter_utm_sourceNoExact UTM source (e.g. 'twitter')
filter_device_typeNoDevice type: 'desktop' | 'mobile' | 'tablet'
filter_referrer_containsNoReferrer substring (e.g. 'google')
Behavior3/5

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

Without annotations, the description carries the burden. It discloses automatic period comparison and filter behavior, which are useful. However, it does not mention rate limits, pagination, or behavior with missing data. Still, it provides key behavioral traits beyond the schema.

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?

Two sentences only: the first front-loads the core purpose and comparison feature, the second clarifies return value and filter options. Every sentence adds value without redundancy.

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?

Given no output schema, the description partially prepares for the response by mentioning aggregate metrics and average_duration. However, it omits details on comparison output format (e.g., percentage change) and potential limitations. Adequate for a simple tool but not thorough.

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 each parameter is documented. The description adds context by summarizing filters as segmentation options and specifying average_duration units. This adds marginal value over the schema, meeting the baseline for high coverage.

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 states the verb 'Get' and resource 'aggregate analytics for a site', listing example metrics (visitors, page views, bounce rate) and highlighting the unique automatic comparison feature. This distinguishes it from siblings like get_timeseries or get_realtime by focusing on aggregate data with period-over-period comparison.

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?

The description implies usage for overall site analytics but does not explicitly state when to use this tool versus alternatives like get_pages or get_traffic_sources. No exclusions or alternative recommendations are provided, leaving the agent to infer based on context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hholen/lodd-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server