Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Find unusual days

find_anomalies
Read-onlyIdempotent

Detect unusual daily Search Console clicks and GA4 sessions, flag spikes or dips outside the normal range, and identify when a lasting traffic drop began.

Instructions

Were there unusual days? Spikes and dips in daily Search Console clicks and GA4 sessions against the normal range, plus the day a lasting drop began.

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

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.
periodNoDefault last_90_days.
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 cover read-only, idempotent, non-destructive, and open-world behavior, so the bar is lower. The description still adds genuinely new behavioral context: the comparison is against a 'normal range' (a baseline rather than a fixed threshold), the grain is daily, and both GSC and GA4 data are analyzed including onset detection for a sustained drop. It does not discuss cost, rate limits, or how the baseline is computed, keeping it out of the top score.

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 question immediately establishes the use case, followed by one clause enumerating the exact signals analyzed. There is no redundant or filler wording; every phrase 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?

With zero required parameters, a fully documented schema, and no output schema, the description is nearly complete: it conveys the data sources, the granularity, and the nature of the findings (spikes, dips, drop onset). What it omits is modest, such as how many anomalies are surfaced or whether results are ranked/thresholded.

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 each parameter documented including defaults and the optional-when-single-site rule, so the schema carries parameter meaning fully. The description mentions the daily GSC/GA4 data sources, loosely implying site and ga4_property, but adds no syntax, format, or behavioral detail beyond the schema. 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 names the specific analysis (spikes and dips in daily Search Console clicks and GA4 sessions against the normal range) plus changepoint-style detection of 'the day a lasting drop began'. That is a concrete verb+resource framing an agent can act on. It does not explicitly contrast with close siblings such as traffic_drops or why_did_it_drop, so differentiation is left to inference.

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 leading question 'Were there unusual days?' implies the triggering scenario for an agent, and 'daily' implies the granularity constraint. However, there is no explicit when-not guidance and no named alternative among the many sibling diagnostics (traffic_drops, why_did_it_drop, top_movers), which are plausible competing choices.

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