Skip to main content
Glama

GSCPAP - Google Search Console, GA4, PageSpeed Insights & live SERPs MCP

GA4 events by name

ga4_events_by_name
Read-only

Event-level breakdown over the last N days. Use for scroll depth, outbound clicks, file downloads, custom events.

Default returns one row per event_name with eventCount + totalUsers. Pass group_by_page=True to also slice by pagePath (great for "what % of homepage visitors scrolled to 90%?"). Pass event_name_filter="scroll" to focus on a single event family.

Input Schema

NameRequiredDescriptionDefault
daysNolookback window (1-365), default 28
limitNomax rows (1-1000), default 50
property_idYesGA4 property id (numeric or "properties/XYZ")
group_by_pageNoif True, also slice by pagePath
event_name_filterNoif set, only return rows for this event_name

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already establish that this is a read-only, open-world, non-destructive query. The description adds useful behavior beyond that by explaining the default output shape (one row per event_name with eventCount and totalUsers), optional pagePath slicing, and filtering to an event family. It does not cover authentication, quota, sampling, or error behavior, but the annotations and output schema lower the burden.

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 front-loads the purpose and default output, then explains optional parameters with compact examples. There is no filler, and the line breaks make it easy to scan.

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 read-only GA4 event query with an output schema and full parameter descriptions, the description covers the key selection and invocation details: scope, default aggregation, page slicing, and event filtering. The main missing piece is explicit sibling routing or when-not-to-use guidance.

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 100%, so the baseline is 3, but the description adds practical meaning for group_by_page and event_name_filter beyond the schema text. The homepage scroll-depth example clarifies how group_by_page is useful, and the filter description clarifies focusing on a single event family, though days, limit, and property_id are left to the schema.

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 states a specific verb and resource: an event-level breakdown over the last N days, with concrete event use cases such as scroll depth, outbound clicks, file downloads, and custom events. It is clearly about GA4 event data, but it does not explicitly distinguish itself from siblings like ga4_engagement, ga4_top_pages, or ga4_overview.

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 usage contexts, including scroll depth, outbound clicks, downloads, and custom events, and explains when to use group_by_page and event_name_filter. However, it does not state when not to use the tool or name sibling alternatives for page-level or engagement summaries.

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.