Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Which platform dropped?

channel_changes
Read-onlyIdempotent

Compare GA4 sessions by platform to identify which source sent fewer visitors, ranked by worst change and cross-checked with Search Console and Bing.

Instructions

Which platform sent fewer visitors? GA4 sessions by platform (Google, Bing, each AI assistant, social, email, direct, paid), worst change first, cross-checked with Search Console and Bing.

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": "channel_changes"
  }
}

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.
limitNoRows to return, default 25, max 100.
periodNoNamed date range ending on the last settled day. Default last_28_days.
compareNoDefault previous_period.
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.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: results are ordered worst-change-first, and the numbers are cross-checked against Search Console and Bing, which tells the agent the data is blended across sources rather than pure GA4.

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?

Two tight sentences: the question is front-loaded, then the resource scope, output ordering and data provenance. Nothing is repeated from the schema and every clause carries information.

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?

For a 7-parameter, all-optional read tool with full schema coverage and no output schema, the description covers what is returned, how it is ordered, and where the data comes from. It could say more about how GA4/Search Console disagreements are reconciled, but nothing essential for invoking it correctly is missing.

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 100%, with defaults, enums and formats all documented in the schema itself. The description adds no extra meaning about site, period, compare or property parameters, so the baseline 3 applies.

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 states a specific question and resource: GA4 sessions broken down by platform (Google, Bing, AI assistants, social, email, direct, paid). An agent can tell this returns a per-platform comparison sorted by decline. It does not name a sibling such as traffic_sources or why_did_it_drop, so differentiation is left to the reader.

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 framing question ('Which platform sent fewer visitors?') implies the use case — diagnosing a channel-level drop — but there is no explicit when-to-use/when-not statement and no named alternative for a different kind of diagnosis. Usage is inferable, not guided.

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