Skip to main content
Glama

ADS MCP

Get GA4 Report

ga4_report
Read-only

Run a Google Analytics 4 report. Returns sessions, users, bounce rate, conversions by any dimension. Call ga4_list_properties first to get the property_id. Useful dimensions: sessionDefaultChannelGroup, landingPage, sessionCampaignName, deviceCategory, country. Useful metrics: sessions, totalUsers, bounceRate, conversions, engagementRate, screenPageViews, averageSessionDuration, newUsers.

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": {
      "user_intent": "<user_intent>",
      "property_id": "<property_id>",
      "dimensions": "<dimensions>"
    },
    "name": "ga4_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows. Default 20, max 100.
metricsNoMetrics to return. Default: sessions, totalUsers, bounceRate, conversions, engagementRate.
dimensionsYesDimensions to group by. e.g. ['sessionDefaultChannelGroup']. Max 9.
property_idYesGA4 property ID (numeric). Get from ga4_list_properties.
user_intentYes
date_range_daysNoDays back. Default 30, max 180.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered and the description's job is to add operating context. It adds the dependency on ga4_list_properties and the allowed dimension/metric vocabulary, but says nothing about quota/rate limits, pagination, or how large date ranges affect cost, which matter for an analytics API. Useful but not rich beyond 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?

Front-loaded with the action and return payload, followed by the prerequisite, then the valid dimension/metric lists. Every sentence carries information, though the two vocabulary lists are dense and could be trimmed to the less guessable entries.

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?

For a 6-parameter, 3-required read tool with no output schema, the description covers purpose, prerequisite, and field vocabulary, which is most of what an agent needs. However, the required user_intent parameter is completely unexplained, and with no output schema the response shape (rows structure, totals, errors on invalid dimension names) is left unstated.

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 83%, so the baseline would be 3, but the description meaningfully compensates for the lack of enums by naming valid dimension values (sessionDefaultChannelGroup, landingPage, deviceCategory, country) and valid metric values (sessions, bounceRate, conversions, etc.) that the schema does not enumerate. The gap is user_intent, a required parameter that gets no explanation anywhere.

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?

States a specific verb and resource ('Run a Google Analytics 4 report') and enumerates the values returned ('sessions, users, bounce rate, conversions by any dimension'). It is clearly a GA4 reporting tool, distinguishable from the Ads-flavored siblings like get_campaign_stats or get_search_terms, though it never explicitly contrasts itself with them.

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?

Gives an explicit prerequisite chain: 'Call ga4_list_properties first to get the property_id.' It also steers field selection by listing useful dimensions and metrics. What it lacks is a when-not clause or any comparison to the other reporting siblings, so the agent must infer that this is the GA4 path rather than the Ads path.

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.