Skip to main content
Glama

SearchCon

GA4 report

ga4_report
Read-only

Use this for Google Analytics 4 data: sessions, engagement, key events (conversions) and revenue by landing page, channel, source, country, device or date.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "property_id": "<property_id>"
    },
    "name": "ga4_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLength of the range when start_date is omitted. Default 28.
limitNoDefault 25.
metricsNoGA4 API metric names. Default [sessions, engagedSessions, engagementRate, keyEvents, totalRevenue]. Others: activeUsers, newUsers, screenPageViews, averageSessionDuration, bounceRate.
end_dateNoYYYY-MM-DD. Omit for the latest complete day (Search Console lags ~3 days).
order_byNoMetric to sort by (descending). Default the first metric.
dimensionsNoGA4 API dimension names. Default ['landingPage']. Common: landingPage, pagePath, sessionDefaultChannelGroup, sessionSource, country, deviceCategory, date.
event_nameNoOnly this event, e.g. 'sign_up' or 'purchase' (exact name). Pair with metrics like eventCount. When set, organic_only defaults to false.
start_dateNoYYYY-MM-DD. Omit to use the last `days` days.
property_idYesNumeric GA4 property id from list_ga4_properties (e.g. '123456789').
organic_onlyNoOnly Organic Search sessions. Default true.
page_containsNoOnly landing pages containing this text.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered by structured data. The description adds the scope of measurable data but says nothing about result caps (the limit parameter tops out at 1000), latency, or pagination behavior, which are the non-obvious traits an agent would want for a reporting query.

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?

It is a single front-loaded sentence that opens with the intended use and then lists payload contents. Nothing is padded, though the brevity leaves behavioral gaps rather than costing clarity.

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?

With 11 parameters, a rich schema and an output schema, the description only needs to orient the agent, and it does so minimally. However, it omits the notable interaction where organic_only flips to false when event_name is set, and it offers no routing between this tool and ga4_realtime or compare_periods, leaving meaningful gaps for a tool of this complexity.

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 description coverage is 100%, so parameter meaning is already fully documented in the input schema, including defaults for metrics, dimensions, and organic_only. The description's enumeration of dimensions and metrics largely restates what the schema provides, adding no syntax or selection guidance beyond it; baseline 3 applies.

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 (Google Analytics 4 data) and enumerates the concrete data types it returns: sessions, engagement, key events/conversions, and revenue, broken out by landing page, channel, source, country, device, or date. That is specific enough for an agent to know what the tool produces, but it never distinguishes itself from siblings like ga4_realtime or compare_periods, so it stops 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 Guidelines3/5

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

'Use this for Google Analytics 4 data' establishes context but gives no when-to-use conditions relative to alternatives. An agent must infer on its own that ga4_realtime covers live data and that compare_periods handles period-over-period comparisons; no exclusions are stated.

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