Skip to main content
Glama

Site_Analytics

Get Google Analytics 4 (GA4) traffic, engagement and conversion data for a site: total and organic sessions, users, new users and page views, engagement rate, bounce rate, average session duration, conversions and conversion rate, top landing pages, traffic sources, conversion events, and a daily trend. This is DISTINCT from the Search Console tools, which return search performance (clicks, impressions, position). Use Search_Analytics or Keyword_Rankings to see how a site performs in search, and Site_Analytics to see what visitors do once they arrive. Every figure is the real value synced from the site's GA4 property; nothing is estimated. GA4 currently syncs the last_28_days window; other date_range values return the latest snapshot with a note. The response carries connected/synced flags and a note when GA4 is not set up, and a units block because property-level engagement_rate and bounce_rate are 0-1 fractions while the per-row values are 0-100 percentages. Revenue is included only when the property has e-commerce tracking enabled. limit and offset apply to top_landing_pages and traffic_sources, which get one pagination entry each; conversion_events and daily_metrics are returned in full. PAGING: this returns one page of rows. The pagination block reports returned, total_available, truncated and next_offset for every list in the response. Check truncated before drawing a conclusion: when it is true these rows are a slice, not the whole picture, and a total or a 'none of them' claim built on them is wrong. Read the rest with offset set to next_offset, or raise limit.

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows per page for top_landing_pages and traffic_sources (each sorted by sessions, descending). Default 10.
offsetNoRow offset into the full result set. Default 0. To read the next page, pass the value the response reports under pagination.<list>.next_offset.
site_idYes
date_rangeNoRequested window. GA4 currently syncs last_28_days; other values fall back to the latest snapshot with a note.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: real synced values (nothing estimated), the fact that only last_28_days syncs with other windows falling back to a snapshot plus a note, connected/synced flags, a units block explaining the 0-1 vs 0-100 discrepancy, and revenue only when e-commerce is enabled. It also warns that truncated=true makes totals or 'none' claims invalid, which is exactly the kind of caveat an agent needs.

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?

The purpose and sibling distinction are front-loaded and each section is organized (purpose, differentiation, sync caveats, units, paging). However it is long and repeats the pagination concept across three separate passages ('one pagination entry each', 'PAGING', and the truncation warning), which costs some efficiency.

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?

There is no output schema, so the description must explain the return shape, and it does: per-list pagination entries, a pagination block with returned/total_available/truncated/next_offset, connected/synced flags, a units block, and conditional revenue. For a complex multi-metric tool, nothing an agent needs to call or interpret it is missing.

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 coverage is 75%, so the baseline is 3; the description adds that conversion_events and daily_metrics are returned in full (unaffected by limit/offset) and that date_range values other than last_28_days fall back with a note. Combined with the schema's own sorting and next_offset guidance, the semantics are well covered, though most of the limit/offset scope detail is already present in the schema.

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?

States a specific verb (Get) and resource (Google Analytics 4 traffic, engagement and conversion data) and then enumerates the concrete metrics returned, so an agent knows exactly what surface it covers. It explicitly contrasts itself with the Search Console tools, making it distinguishable from siblings like Search_Analytics and Keyword_Rankings without opening a schema.

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

Usage Guidelines5/5

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

Provides an explicit routing rule: use Search_Analytics or Keyword_Rankings for search performance and Site_Analytics for post-arrival behavior. It also gives conditional operational guidance (raise limit or read with next_offset when truncated is true), so the agent knows both when to pick this tool and how to consume 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.

Resources