Skip to main content
Glama

Site Insights by KKV Labs

GA4 batch reports

run_ga4_batch_reports
Read-onlyIdempotent

Up to 5 GA4 reports for one site in a single call (GA4 Data API batchRunReports). Each request has its own dimensions, metrics, date ranges, dimension and metric filters, order by, limit, offset, metric aggregations, comparisons and keep empty rows. Counts as one tool call.

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": {
      "requests": "<requests>"
    },
    "name": "run_ga4_batch_reports"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNotrue returns Google's response exactly as Google sent it, unchanged.
siteNoThe site's domain (example.com) or its label. Optional when the account has exactly one site switched on. An unknown name returns an error that lists the switched on sites.
requestsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds context the annotations do not: the hard cap of 5 requests, per-request independence of each query, and the fact the whole batch bills as one tool call — a quota detail an agent cannot infer elsewhere.

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?

Two sentences, front-loaded with the batch constraint and the API name; the second sentence is a dense but purposeful enumeration of per-request options. No filler, though the list of capabilities is long enough to be skimmed rather than absorbed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nested batch tool with no output schema, the description covers scope (one site), capacity (5 requests), per-request independence, and API equivalence so return shape can be looked up. Combined with the detailed input schema, an agent has what it needs to call this correctly.

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 67% and the schema already documents most nested fields (period, date_ranges, dimension_filter, metric_aggregations, limit/offset). The description enumerates the same per-request capabilities but adds no format or syntax detail beyond the schema, and it says nothing about the undocumented fields such as currency_code or keep_empty_rows; baseline 3 fits.

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 (fetch up to 5 GA4 reports for one site in one call) and anchors it to the underlying API (batchRunReports). The batching limit distinguishes it from a single-report tool, but it never names run_ga4_report or run_ga4_pivot_report as the alternatives, so differentiation is inferred rather than stated.

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 implied by the 5-report cap and 'Counts as one tool call', which signals this is the efficiency path for several queries at once. There is no explicit when-to-use/when-not guidance versus run_ga4_report, run_ga4_pivot_report, or run_ga4_realtime_report.

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