Skip to main content
Glama
SEO Advisor

SEO Advisor

by andriantam

GA4 report

ga_run_report
Read-onlyIdempotent

Run Google Analytics 4 reports with selected metrics and dimensions to compare mobile/desktop performance or analyze per-page engagement over a date range.

Instructions

Google Analytics 4 report. Example: metrics ['sessions','engagementRate','averageSessionDuration'] with dimensions ['deviceCategory'] to compare mobile and desktop, or ['landingPage'] for per-page engagement. Names are GA4 Data API names.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ga_run_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
endDateNoyesterday
metricsNo
startDateNoYYYY-MM-DD, or 'NdaysAgo', 'yesterday', 'today'.28daysAgo
dimensionsNo
propertyIdNoGA4 property id (digits). Defaults to GA_PROPERTY_ID.
orderByMetricNoMetric to sort by, descending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already establish that this is a read-only, idempotent, open-world, non-destructive operation. The description adds no behavioral context beyond examples, such as authentication or property selection requirements, date-range handling, limits, rate limits, or return shape.

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?

The description is two sentences and front-loads the resource before giving concrete examples. The opening sentence mostly restates the title, but the second sentence is dense with useful parameter guidance and no clear filler.

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

Completeness2/5

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

For a 7-parameter report tool with no output schema, the description is not complete enough. It provides useful examples for metrics and dimensions but omits return values, date-range semantics, limit behavior, and property-default context, leaving significant gaps beyond what annotations cover.

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 description coverage is 43%, so the description must compensate. It does add important meaning for metrics and dimensions by stating that names are GA4 Data API names and by giving examples, but it leaves several parameters such as limit and endDate unexplained, so the coverage remains only minimum viable.

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 identifies the resource as a Google Analytics 4 report and clarifies it is built from metrics and dimensions, with concrete examples that make the operation understandable. It does not explicitly state the action verb or distinguish historical reporting from the sibling ga_realtime tool, which keeps it below a 5.

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 through examples such as comparing device categories or analyzing landing pages, but there is no explicit when-to-use guidance, no when-not-to-use guidance, and no routing to alternatives like ga_realtime. The examples provide adequate context but leave the agent to infer selection.

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