Skip to main content
Glama
Google Search Console MCP Server

Google Search Console MCP Server

by ahonn

Diagnose Site

diagnose_site
Read-onlyIdempotent

Diagnose site changes by reviewing period totals, dropped pages and causes, content decay, URL Inspection for top drops, and sitemap errors; use first for broad 'what changed' queries.

Instructions

Run one site diagnosis: period totals, dropped pages with likely causes, content decay, URL Inspection for the top dropped pages, and sitemap errors. Use it first for a broad "what changed" question

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "siteUrl": "<siteUrl>"
    },
    "name": "diagnose_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLength of the range when startDate is omitted. Defaults to 28
typeNoSearch type: web (default), image, video, news, discover, googleNews, or webMultimodal. Google does not allow grouping webMultimodal by query
limitNoMaximum items in each result list
endDateNoEnd date in YYYY-MM-DD format, Pacific Time. Defaults to the latest day with final data
maxRowsNoMaximum rows to read from Google for the analysis. The server pages through results.
siteUrlYesA Search Console property, bare domain, or page URL. Examples: sc-domain:example.com, https://www.example.com/, example.com
startDateNoStart date in YYYY-MM-DD format, Pacific Time. Defaults from days and endDate
inspectLimitNoTop dropped pages to check with URL Inspection. Each check uses daily quota
previousEndDateNoEnd of the comparison period. Set it together with previousStartDate
previousStartDateNoStart of the comparison period. Defaults to the period of equal length before startDate

Output Schema

NameRequiredDescriptionDefault
metaNo
currentYes
summaryYes
indexingYes
previousYes
sitemapsYes
warningsYes
contentDecayYes
trafficDropsYes
dataTruncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, so the safety profile is covered. The description adds that this is a fan-out operation touching URL Inspection and sitemaps, which hints at cost, but it never states the quota consumption of the inspections or the latency of a multi-step crawl-side analysis.

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, front-loaded with the verb and action, then the use-first guidance. Dense and nearly waste-free; the result enumeration is long but each item is informative.

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?

Output schema exists, so return values need not be explained, and the description covers the breadth of what the diagnosis includes. A note on inspection quota cost or the default comparison period would round it out for a 10-parameter composite tool.

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 date range, type, limits, and comparison-period parameters are already fully documented. The description only alludes to 'top dropped pages' (inspectLimit) and 'period totals' (date range) without adding format or interaction rules beyond the schema.

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?

States a specific verb and resource ('Run one site diagnosis') and then enumerates the sub-analyses it bundles: period totals, dropped pages with likely causes, content decay, URL Inspection, sitemap errors. That enumeration lets an agent distinguish it from focused siblings like detect_traffic_drops or detect_content_decay, though it never names those siblings directly.

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?

'Use it first for a broad "what changed" question' gives a clear entry-point rule and implicitly reserves the narrower detectors for follow-up. It stops short of explicit when-not-to-use guidance (e.g. when a targeted detector is cheaper or preferred).

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