Skip to main content
Glama
Google Search Console (GSC) MCP

Google Search Console (GSC) MCP

Query search performance

gsc_search_analytics
Read-onlyIdempotent

Query Search Console analytics for a property and date range to retrieve clicks, impressions, CTR, and average position grouped by query, page, country, device, or date.

Instructions

Query Search Console search analytics for a property over a date range: clicks, impressions, CTR, and average position, grouped by the dimensions you pass (query, page, country, device, date). Returns compact rows. Use this for 'what are my top queries / pages' and trend questions. GSC data lags ~2-3 days, so end your range a few days before today.

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": {
      "site_url": "<site_url>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "gsc_search_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoSearch type filter. Defaults to web when omitted.
end_dateYesEnd date, YYYY-MM-DD (Pacific Time, inclusive).
site_urlYesThe Search Console property. Use the exact form shown by gsc_list_sites: a Domain property is 'sc-domain:example.com'; a URL-prefix property is the full origin with a trailing slash, e.g. 'https://example.com/'.
row_limitNoMax rows to return (default 25, cap 1000). Keep low; rows cost tokens.
dimensionsNoHow to group rows. Default ['query']. Combine for breakdowns, e.g. ['page','query'].
start_dateYesStart date, YYYY-MM-DD (Pacific Time, inclusive).
dimension_filter_groupsNoOptional filters, e.g. only rows where page contains '/blog/'. Each group's filters are AND-ed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv1.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / dimension_filter_groups / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / dimension_filter_groups / items / properties / filters / description
      Added value: +"The filters in this group; all must match (AND)."
    • removedInput schema / properties / dimension_filter_groups / items / properties / filters / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / dimension_filter_groups / items / properties / filters / items / properties / dimension / description
      Added value: +"The dimension this filter tests."
    • addedInput schema / properties / dimension_filter_groups / items / properties / filters / items / properties / expression / description
      Added value: +"The value to match, e.g. '/blog/' for page contains, 'MOBILE' for device, or a three-letter country code like 'usa'. A regex for includingRegex/excludingRegex (RE2 syntax)."
    • addedInput schema / properties / dimension_filter_groups / items / properties / filters / items / properties / operator / description
      Added value: +"How expression is matched against the dimension value. Defaults to 'equals' (applied by Google) when omitted."
    • addedInput schema / properties / dimension_filter_groups / items / properties / groupType / description
      Added value: +"How the filters in this group combine. Only 'and' is supported (the default)."
    • addedInput schema / properties / end_date / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / row_limit / maximum
      Added value: +1000
    • addedInput schema / properties / row_limit / minimum
      Added value: +1
    • changedInput schema / properties / row_limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / start_date / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely non-structured context: GSC data lags ~2-3 days, so the end date should be shifted back, and rows come back 'compact'. It does not discuss quotas/rate limits, which is the only remaining gap.

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?

Three compact sentences: what it returns first, then when to use it, then the caveat about data lag. No repetition of schema content and nothing superfluous.

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 read tool with no output schema, the description covers metrics returned, grouping behavior, intended questions, and the freshness caveat. The only minor omission is behavior at the row cap or whether results are sorted, but that is not essential to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema carries the parameter detail and the baseline is 3. The description still adds practical semantic value: it frames the grouping parameter as the thing that shapes the result and gives date-range guidance that directly affects start_date/end_date choice.

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 and resource ('Query Search Console search analytics for a property over a date range') and names the exact metrics returned (clicks, impressions, CTR, average position) plus the grouping mechanism. An agent can tell this apart from sibling tools like gsc_inspect_url or gsc_list_sitemaps without opening any schema.

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?

Gives concrete use cases: "'what are my top queries / pages' and trend questions," which tells the agent when this is the right entry point. It does not explicitly name an alternative or an exclusion (e.g. how it differs from gsc_striking_distance), so it falls short of a 5.

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