Skip to main content
Glama
mcp-google-analytics

mcp-google-analytics

Custom GA4 report

ga_run_report
Read-only

Run GA4 Data API reports with chosen dimensions and metrics to query property data over a date range.

Instructions

Runs a Data API report with any GA4 dimensions/metrics (API names, e.g. country, deviceCategory, sessions, totalRevenue).

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": {
      "propertyId": "<propertyId>",
      "metrics": "<metrics>"
    },
    "name": "ga_run_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
endDateNoYYYY-MM-DD, or relative: today, yesterday, NdaysAgo.today
metricsYes
startDateNoYYYY-MM-DD, or relative: today, yesterday, NdaysAgo.28daysAgo
descendingNo
dimensionsNo
propertyIdYesGA4 property ID, e.g. 123456789.
orderByMetricNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, so the description's remaining burden is lighter. It adds that values are GA4 Data API names and gives concrete examples, which is useful, but says nothing about quota/rate-limit behavior, ordering defaults, or what happens when limit is hit.

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?

A single front-loaded sentence with no filler; the verb and capability come first and the parenthetical examples are compact and directly actionable.

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 an 8-parameter read-only reporting tool with no output schema, the description covers the hardest concept (API-name semantics) but leaves half the parameters undocumented. It is close to sufficient given the annotations, though a note on sorting/paging would close the remaining gap.

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 coverage is only 38%, so the description must compensate, and it does partially: it establishes that metrics/dimensions take API names and gives examples like 'country' and 'totalRevenue'. However, limit, descending, orderByMetric, and the date-range interaction are left entirely to the bare 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 ('Runs a Data API report') and scopes it to arbitrary GA4 dimensions/metrics named by API name. It distinguishes the tool's character (fully custom report) from a fixed/basic report, but never names a sibling, so differentiation is implied rather than explicit.

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?

There is no when-to-use or when-not-to-use guidance and no reference to alternatives such as ga_basic_report or ga_realtime_report, even though both are plausible competitors for a reporting request. At best, 'any GA4 dimensions/metrics' hints that this is the flexible option, but the agent must infer that.

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