Skip to main content
Glama
Akxan
by Akxan

GA4 report

ga_run_report
Read-onlyIdempotent

Run Google Analytics 4 reports with specified dimensions, metrics, filters, and optional date-range comparisons to extract SEO and traffic insights.

Instructions

Run a Google Analytics 4 Data API report. Common dimensions: date, pagePath, landingPage, sessionDefaultChannelGroup, sessionSource, sessionMedium, country, deviceCategory, eventName. Common metrics: sessions, activeUsers, totalUsers, newUsers, screenPageViews, engagementRate, averageSessionDuration, bounceRate, conversions, eventCount, keyEvents. Use ga_get_metadata to discover more. Optionally add a comparison date range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
endDateNoyesterday
metricsNo
orderByNoSort order. Defaults to first metric descending.
startDateNoYYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo'.28daysAgo
dimensionsNo
propertyIdYesGA4 property ID, e.g. '123456789' or 'properties/123456789'. Use ga_list_properties to discover it.
metricFilterNoRaw GA4 FilterExpression JSON. Overrides metricFilters when given.
keepEmptyRowsNo
metricFiltersNoSimple AND-ed metric filters (applied after aggregation).
compareEndDateNo
dimensionFilterNoRaw GA4 FilterExpression JSON. Overrides dimensionFilters when given.
compareStartDateNoOptional second date range start; adds a 'dateRange' dimension to rows.
dimensionFiltersNoSimple AND-ed dimension filters.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the description need not repeat these. It adds context that a comparison date range introduces a 'dateRange' dimension and lists common dimensions/metrics, but it does not disclose return format, pagination behavior, or rate limits. This is acceptable given the annotations.

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 description is concise, front-loaded with the core purpose, and uses a few sentences to convey key information. The list of common dimensions/metrics is useful but slightly lengthy; it earns its place by guiding parameter selection. No unnecessary fluff.

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 report tool with no output schema, the description provides enough to call it correctly: property ID, dimensions, metrics, date range, and optional comparison. It points to ga_get_metadata for extended metadata. Missing details like return format are minor given the tool's nature and the provided annotations.

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 53%, and the description compensates by listing common dimensions and metrics, which helps agents populate the arrays. It also explains that compareStartDate adds a 'dateRange' dimension, adding meaning beyond the schema. The pointer to ga_get_metadata further supports parameter discovery.

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 clearly states the tool runs a Google Analytics 4 Data API report, lists common dimensions and metrics, and points to ga_get_metadata for discovery. It implies a distinction from real-time and comparison tools but does not explicitly contrast with siblings like ga_run_realtime_report or ga_compare_periods.

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

Usage Guidelines2/5

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

The only usage guidance is 'Use ga_get_metadata to discover more.' It does not state when to use this tool versus alternatives like ga_run_realtime_report or ga_compare_periods, nor does it mention prerequisites or exclusions. The optional comparison date range hints at overlap with ga_compare_periods but is not clarified.

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

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/Akxan/google-seo-mcp'

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