Skip to main content
Glama
Search Console MCP

Search Console MCP

Detect traffic drops and spikes

detect_traffic_anomalies
Read-onlyIdempotent

Scans daily Search Console trends against the same weekday in prior weeks to flag unusual traffic days without weekly false alarms, then compares the latest week with a typical one.

Instructions

Scans the daily trend for days that differ sharply from the same weekday in the preceding weeks, so the weekly rhythm does not trigger false alarms. Returns the unusual days with the expected value and how the latest week compares with a typical one. Use it for monitoring and as the first step when someone asks "did our traffic drop?".

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

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days of history to examine. At least 35 are needed to form a baseline.
metricNoWhich metric to watch.clicks
filtersNoFilters; a row must match all of them. Example: [{"dimension":"page","operator":"contains","expression":"/blog/"},{"dimension":"country","operator":"equals","expression":"usa"}]. Countries are ISO 3166-1 alpha-3 codes, devices are DESKTOP, MOBILE or TABLET, and the regex operators use RE2 syntax.
end_dateNoLast day of the period, YYYY-MM-DD in Pacific Time, or "today" / "yesterday". Defaults to the latest day Google has complete data for, usually 3 to 4 days ago. A later date includes days that are still incomplete.
site_urlNoSearch Console property, for example "sc-domain:example.com" or "https://www.example.com/". A bare domain or any page URL on the site also works. Optional when GSC_SITE_URL is set or the account has exactly one property.
search_typeNoWhich Google surface: web (default), image, video, news (the News tab), discover or googleNews.web
min_deviation_pctNoSmallest deviation from the expected value, in percent, worth reporting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 adds real context beyond them: the weekday-seasonality baseline explains why false alarms are avoided, and it sketches the response shape (unusual days, expected value, latest-week comparison).

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 method and false-positive rationale come first, then the return payload and usage cue. Nothing is redundant and no sentence merely restates the title.

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 no output schema, the description usefully describes the return payload, and the parameters are fully self-documenting with sensible defaults and zero required fields. It stops short of saying what happens when no anomalies clear the threshold, but the definition is otherwise sufficient to call correctly.

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 the schema fully documents days, metric, filters, dates, search_type and min_deviation_pct. The description adds no parameter-level detail beyond a general notion of deviation, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (scan) plus the resource (daily trend) and the method (weekday-matched baseline), so it is clearly distinguishable from siblings like compare_periods or find_declining_pages. It also names what comes back: unusual days, expected value, and a week-over-week comparison.

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

Usage Guidelines4/5

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

Explicitly states when to use it: for monitoring and as the first step when someone asks 'did our traffic drop?'. That gives a clear entry point, though it does not name an alternative tool or state when another sibling (e.g. compare_periods) is the better choice.

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