Skip to main content
Glama
Google Analytics MCP Server

Google Analytics MCP Server

batch_run_reports

Read-only

Run 1–5 GA4 core reports for a single property in one official batch call, returning ordered results, metadata, and quota data to avoid separate requests.

Instructions

Run 1–5 core reports for one property in a single official batch call.

Args: property_id: Numeric property ID or properties/ID shared by all reports. reports: 1–5 ReportSpec objects. Each requires date_ranges (1–4) and metrics (1–10); dimensions (0–9), filters, order_bys, limit (1–250000), offset (>=0), currency_code and return_property_quota are optional. Unknown fields and per-report property overrides are rejected.

Returns: Reports in request order with headers, string-valued rows, row_count, metadata and quota. Pagination is per report; no automatic paging.

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>",
      "reports": "<reports>"
    },
    "name": "batch_run_reports"
  }
}

Input Schema

NameRequiredDescriptionDefault
reportsYes
property_idYesNumeric GA4 property ID or properties/ID; metadata property 0 is universal

Output Schema

NameRequiredDescriptionDefault
reportsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds real behavioral context on top: unknown fields and per-report property overrides are rejected, results come back in request order, rows are string-valued, and pagination is per report with no automatic paging. It stops short of describing failure modes (e.g. partial failure across the batch) or quota/rate-limit behavior beyond returning quota.

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?

Args/Returns structure is front-loaded with the one-line purpose, and every section maps to something an agent needs. It is dense but not padded, though the parameter recap partially duplicates schema constraints the agent can already read.

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?

With an output schema present and annotations covering the safety profile, the description still adds the return shape (headers, string rows, row_count, metadata, quota), ordering guarantee, and the no-auto-paging caveat. Missing only batch-level failure semantics, which is a modest gap for a read-only reporting tool.

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?

At 50% schema coverage the description carries meaningful weight: it explains property_id accepts a numeric ID or properties/ID, enumerates the per-report bounds (date_ranges 1–4, metrics 1–10, dimensions 0–9, limit 1–250000, offset >=0), and adds an input contract the schema does not express — unknown fields and per-report property overrides are rejected. Some of the enumeration restates schema constraints, which keeps it from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb (run), a resource (core reports), and a distinct scope (1–5 reports, one property, one batch call). 'Core reports' plus the batch constraint cleanly separates it from siblings like run_report, run_comparison_report, run_funnel_report and run_realtime_report.

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?

The batch framing implies when to use it (multiple reports for a single property in one call), but the description never states when to prefer run_report instead, nor when batching is inappropriate. Usage context is implied rather than explicit, with no exclusion rules.

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