Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Several GA4 reports at once

run_ga4_batch_reports
Read-onlyIdempotent

Run up to five GA4 reports in one call over the same date range, so you can compare sessions by country, device, and channel together.

Instructions

Several GA4 reports in one call (up to 5) over the same dates, e.g. sessions by country, by device and by channel together.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site.
periodNoNamed date range ending on the last settled day. Default last_28_days.
reportsYes
end_dateNoEnd date YYYY-MM-DD. Defaults to the last settled day (Search Console lags 2 to 3 days).
start_dateNoStart date YYYY-MM-DD. Overrides period.
ga4_propertyNoGA4 property ID (numbers only). Optional: found from the site's web stream when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds the batch cap and the shared-date constraint, but says nothing about partial failures, whether each report counts against quota separately, or how the results map back to the input order.

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 stating capability, limit, shared scope, and illustrative examples. No filler or redundant restatement of the title.

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?

For a six-parameter, nested-array batch tool with no output schema, the description covers the core contract but leaves the result shape and per-report error behavior unstated. Adequate to call correctly, not complete enough to predict what comes back.

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 83%, so the schema already documents site, period, ga4_property and the nested report fields. The description's contribution is the cross-cutting constraint that every report in the batch shares the same dates, which is genuine meaning beyond the schema, but nothing further on the metrics/dimensions/filter semantics.

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 action and resource: multiple GA4 reports in one call, capped at 5, sharing one date range, with three concrete examples. This is enough to tell it apart from a single-report tool, though it never names run_ga4_report or run_ga4_pivot_report as the alternatives.

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 phrase 'in one call (up to 5) over the same dates' implies the usage condition: batch breakdowns that share a date window. There is no explicit when-not guidance (e.g. use the single report tool for one breakdown, or pivot when you need cross-dimension pivots), so the agent must infer the boundary.

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