Skip to main content
Glama

Google Analytics report

get_analytics
Read-onlyIdempotent

A Google Analytics 4 report for a property the account connected: 'overview' (sessions, users, engaged sessions and key events by channel), 'landing_pages' (Organic Search sessions by landing page), 'sources' (sessions by source and medium), 'ai_referrals' (sessions sent by AI assistants such as ChatGPT, Perplexity, Claude and Gemini, by landing page) or 'key_events'. Give the site to find its property, or property_id; when neither matches, the answer lists the properties. days 1 to 365, ending yesterday.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
siteNo
reportNooverview
property_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive and open-world behavior, and the description adds meaningful context beyond them: which connected property is queried, the five available report shapes, and the 'ends yesterday / max 365 days' data latency constraint. It still leaves the result payload shape undisclosed, which is acceptable given there is no output schema but keeps it at 4.

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 report enumeration is front-loaded and every clause carries information the schema does not, so the density is justified. It is a single unbroken paragraph, though, and the site/property/days mechanics at the end would scan better as separate 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?

For a 4-parameter read tool with no output schema, the description covers the report catalog, property resolution, fallback listing, and date range — enough for an agent to call it correctly without guessing. The main residual gaps are default values and any note on what the returned report actually looks like.

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?

With 0% schema coverage the description carries the full burden, and it does substantial work: it effectively defines the enum for 'report' (overview, landing_pages, sources, ai_referrals, key_events) with each option's content, explains the site-vs-property_id resolution order, and constrains 'days' to 1-365 ending yesterday. It omits the defaults (28 days, 'overview') and does not state overflow behavior, so it is not exhaustive.

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 names the resource (a Google Analytics 4 report for a connected property) and enumerates the five report types with the exact metrics each returns, so an agent understands precisely what it will get. It does not open with an explicit verb like 'retrieve' and does not contrast itself against sibling tools, keeping it just short of a 5.

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 concrete invocation guidance: supply 'site' to resolve the property, or 'property_id' directly, and it explains the fallback behavior when neither matches (the answer lists the properties). It also bounds the time window to 1-365 days ending yesterday, but stops short of saying when to prefer this over sibling analytics/SEO 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.

Resources