Skip to main content
Glama
google-seo-mcp
by Akxan

GA4 batch reports

ga_batch_run_reports
Read-onlyIdempotent

Run up to five standard GA4 reports for the same property in one API call and return each tabulated result in report order.

Instructions

Run up to 5 standard reports in one API call (same property). Each item takes the same fields as ga_run_report's core: dimensions, metrics, startDate, endDate, dimensionFilters, metricFilters, limit, offset. Returns one tabulated result per report, in order.

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

Input Schema

NameRequiredDescriptionDefault
reportsYes
propertyIdYesGA4 property ID, e.g. '123456789' (see ga_list_properties).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.14.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / reports / items / properties / offset / maximum
      Removed value: -9007199254740991
  2. Changed6 schema fields changedv0.10.0
    • addedInput schema / properties / reports / items / properties / dimensionFilters / items / properties / value / description
      Added value: +"Single value, matched with matchType."
    • addedInput schema / properties / reports / items / properties / dimensionFilters / items / properties / values
      Added value: +{
      +  "description": "Match any value in this list (inListFilter), e.g. 20 page paths. Use instead of value.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / reports / items / properties / dimensionFilters / items / required
      Previous value: -[
      -  "field",
      -  "value"
      -]New value: +[
      +  "field"
      +]
    • addedInput schema / properties / reports / items / properties / filterLogic
      Added value: +{
      +  "default": "and",
      +  "description": "How to join this report's dimensionFilters.",
      +  "enum": [
      +    "and",
      +    "or"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / reports / items / properties / metricFilters
      Added value: +{
      +  "description": "AND-ed metric filters (post-aggregation).",
      +  "items": {
      +    "properties": {
      +      "field": {
      +        "description": "Metric API name, e.g. 'sessions'.",
      +        "type": "string"
      +      },
      +      "operation": {
      +        "default": "GREATER_THAN",
      +        "enum": [
      +          "EQUAL",
      +          "LESS_THAN",
      +          "LESS_THAN_OR_EQUAL",
      +          "GREATER_THAN",
      +          "GREATER_THAN_OR_EQUAL"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "field",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / reports / items / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Skip this many rows (pagination).",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. Addedv0.5.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, non-destructive, open-world. The description adds genuine behavior beyond that: the 5-report ceiling, ordering of results, and one result per report. It says nothing about partial-failure behavior if one report in the batch fails, or about quota/cost of batching, which are the material unknowns for a batch API.

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?

Three tight sentences, front-loaded with the batch scope and limit before the per-item field mapping and the return shape. No filler or restatement of the tool name.

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 no output schema, the description correctly covers the return shape ('one tabulated result per report, in order') and the item structure. What remains missing is error/partial-success semantics and quota implications for a multi-report call, which matter for a batch tool with nested params.

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 50% (the nested 'reports' array has no top-level description), so the description must compensate, and it does by mapping each item's fields to ga_run_report's documented core, letting the agent reuse known semantics. It omits the schema's 'name' and 'filterLogic' fields, so the enumeration is close to but not fully aligned with the actual item 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?

States a specific verb and resource with clear scope: 'Run up to 5 standard reports in one API call (same property)'. The word 'standard' and the reference to ga_run_report's core fields implicitly separate it from the funnel/pivot/realtime siblings, but that separation is left implicit rather than named.

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 'up to 5 ... (same property)' constraint implies batch several reports together against one property, but there is no explicit when-to-use versus ga_run_report for a single report, and no when-not guidance. Usage is inferable but never stated.

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