Skip to main content
Glama
SEO Advisor MCP

SEO Advisor MCP

by andriantam

GA4 report

ga_run_report
Read-onlyIdempotent

Run Google Analytics 4 reports with custom metrics, dimensions, date ranges, and sorting to compare channels, devices, or landing pages and identify engagement trends.

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) of the site being analysed. Ask the user if you do not know it, or use ga_list_properties.
orderByMetricNoMetric to sort by, descending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive behavior, so the safety profile is covered. The description adds that metric and dimension names must follow the GA4 Data API, which is useful, but it does not disclose return format, rate limits, quota behavior, or pagination.

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?

It is three sentences, front-loads the purpose, and avoids filler. The example sentence is somewhat dense and could be split, but overall it earns its space.

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 7-parameter reporting tool with no output schema, the description leaves out important operational details: what the response contains (rows, totals, pagination), the effect of limit, and the date-range defaults. Annotations cover safety, but an agent still lacks enough to predict output shape or handle large results confidently.

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?

With only 43% schema description coverage, the description partially compensates by giving example values for metrics and dimensions and stating they use GA4 Data API names. However, it does not clarify limit, endDate, or orderByMetric beyond what little the schema offers, leaving several parameters under-documented.

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 clearly as a Google Analytics 4 report and shows the metric/dimension query pattern, so an agent knows it retrieves GA4 data. It does not state an explicit verb or distinguish itself from siblings such as ga_realtime or ga_list_properties, so it stops short of 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?

It provides example metric/dimension combinations (deviceCategory, landingPage), which implies typical usage, but gives no when-to-use versus when-not guidance. It does not mention alternatives like ga_realtime for real-time data, nor prerequisites beyond the schema note about propertyId.

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