Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Why did my traffic drop?

why_did_it_drop
Read-onlyIdempotent

Diagnose why Google traffic dropped: split click changes into impressions and CTR, identify the start date, and find the cause per page and query with index status and ranking updates.

Instructions

Why did Google traffic drop? Clicks change split into impressions and CTR, start date, cause per page and query, index status, and Google ranking updates in the window.

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

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.
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered and the bar is lower. The description usefully implies the tool pulls in supplementary data (index status, ranking updates) beyond raw click metrics, but it says nothing about latency, required Search Console/GA4 access, or how it behaves when no drop is detected.

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?

Two sentences, no filler, and the diagnostic framing is front-loaded so an agent reads the purpose first. The second sentence is a dense comma list that is slightly telegraphic but still parseable. Nothing is wasted, though the fragment style is more compressed than explanatory.

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?

With no output schema, the description carries the burden of describing returns, and it does list the output components, which is its main contribution. However, for a diagnostic tool sitting among close siblings like traffic_drops and find_anomalies, the absence of routing guidance leaves a real gap. It is adequate but not complete.

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%, so defaults, formats, and the Search Console 2-3 day lag are already documented in the schema. The description only echoes 'start date' and 'in the window', adding essentially no semantics beyond the structured fields. 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 goes beyond the title by naming the actual mechanism: a clicks decomposition into impressions and CTR, per-page and per-query causes, index status, and Google ranking updates in the window. That tells an agent concretely what analysis it produces. It stops short of distinguishing it from similarly named siblings such as traffic_drops or find_anomalies, which an agent would have to disambiguate on its own.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no statement of when not to use it, and no named alternative. All six parameters are optional, so an agent gets no signal about whether to supply a site, a period, or both before calling. The only implicit context is that it applies to Google search traffic.

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