Skip to main content
Glama
Google Ads MCP

Google Ads MCP

by gabogabucho

Run Ga4 Report

run_ga4_report

Generate custom Google Analytics 4 reports by specifying a GA4 property, dimensions, metrics, and date range to analyze sessions, users, conversions, and revenue.

Instructions

Run a custom Google Analytics 4 report.

Common dimensions: sessionDefaultChannelGroup, deviceCategory, country, city, landingPage, sessionCampaignName, sessionGoogleAdsKeyword, pagePath, date

Common metrics: sessions, totalUsers, newUsers, bounceRate, conversions, totalRevenue, engagementRate, screenPageViews, averageSessionDuration

Date range examples: "30daysAgo", "7daysAgo", "today", "yesterday", "2024-01-01"

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>",
      "dimensions": "<dimensions>",
      "metrics": "<metrics>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "run_ga4_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (default 100)
metricsYesList of metric names
end_dateYesEnd date (e.g. "today" or "YYYY-MM-DD")
dimensionsYesList of dimension names
start_dateYesStart date (e.g. "30daysAgo" or "YYYY-MM-DD")
property_idYesGA4 numeric property ID (e.g. "123456789")

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully signals that dimensions and metrics must be valid GA4 names (reducing trial-and-error errors), but it says nothing about permissions, quota or rate limits, whether invalid dimension/metric combinations fail, or how the default limit of 100 rows behaves on truncation.

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?

Purpose is front-loaded in the first line, and the remaining lines are dense reference lists with no filler. Every sentence helps an agent construct a valid call.

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 an output schema present and all six parameters fully documented in the schema, the description is adequate for invoking the tool. What is missing relative to the sibling-heavy toolset is any statement of scope or boundary against `run_gaql_query`, plus any error or quota behavior.

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 already 100%, so the baseline is 3. The description beats that by supplying concrete example values for the two free-form string-array parameters (dimensions, metrics) and accepted date-range literals, which the schema does not enumerate 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 custom Google Analytics 4 report." That is unambiguous on its own, but the description never distinguishes it from the sibling `run_gaql_query` (or `get_ga4_events`), so an agent must guess which reporting tool to reach for.

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?

Usage is only implied: the request lists common dimensions and metrics, which signals this is for ad-hoc breakdowns rather than raw event retrieval. There is no explicit when-to-use, when-not-to-use, or named alternative such as `run_gaql_query`, so the agent gets the context but no decision rule.

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