Skip to main content
Glama
Google Search Console Audit MCP

Google Search Console Audit MCP

gsc_query

Read-onlyIdempotent

Query the Search Analytics report: clicks, impressions, CTR, position.

Instructions

Query the Search Analytics report: clicks, impressions, CTR, position.

This is the general-purpose tool. With no dates it covers the last 28 days ending today (UTC), with data_state=all so today's partial data is included, matching what the Search Console UI shows.

Example: site_url="sc-domain:example.com", dimensions="query,page", period="last_28_days", row_limit=100.

Returns a # meta ... line then a TSV table, or JSON with meta and rows. The meta names the exact range, the row count, whether more rows exist and the start_row to pass next.

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>"
    },
    "name": "gsc_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoRolling window length ending today.
typeNoweb, image, video, news, discover or googleNews.web
periodNoNamed range: last_7_days, last_28_days, last_3_months, last_month, this_month, last_16_months.
date_toNoEnd date YYYY-MM-DD. Defaults to today.
filtersNoList of {dimension, operator, expression}. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex.
no_cacheNoBypass the response cache for this call.
site_urlYes`sc-domain:example.com` for a domain property, or `https://example.com/` with the trailing slash for a URL-prefix property. Call gsc_sites if unsure.
date_fromNoStart date YYYY-MM-DD. Overrides period and days.
row_limitNoRows returned, capped at 1000.
start_rowNoZero-based pagination offset.
data_stateNo`all` (default, includes today's partial data) or `final`.
dimensionsNoComma-separated dimensions: query, page, country, device, date, searchAppearance, hour. `hour` covers only the last 10 days.query
response_formatNo`tsv` (default, compact) or `json`.tsv
aggregation_typeNoauto, byPage or byProperty.auto
filter_group_typeNoOnly `and` is supported by the API within one group.and

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.0.0
    • changedInput schema / properties / row_limit / description
      Previous value: -"Rows returned. Default 100, capped at 1000."New value: +"Rows returned, capped at 1000."
  2. Changed18 schema fields changedv3.0.1
    • addedInput schema / properties / aggregation_type
      Added value: +{
      +  "default": "auto",
      +  "description": "auto, byPage or byProperty.",
      +  "title": "Aggregation Type",
      +  "type": "string"
      +}
    • addedInput schema / properties / data_state
      Added value: +{
      +  "default": "",
      +  "description": "`all` (default, includes today's partial data) or `final`.",
      +  "title": "Data State",
      +  "type": "string"
      +}
    • addedInput schema / properties / date_from / default
      Added value: +""
    • addedInput schema / properties / date_from / description
      Added value: +"Start date YYYY-MM-DD. Overrides period and days."
    • addedInput schema / properties / date_to / default
      Added value: +""
    • addedInput schema / properties / date_to / description
      Added value: +"End date YYYY-MM-DD. Defaults to today."
    • addedInput schema / properties / days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Rolling window length ending today.",
      +  "title": "Days"
      +}
    • addedInput schema / properties / dimensions / description
      Added value: +"Comma-separated dimensions: query, page, country, device, date, searchAppearance, hour. `hour` covers only the last 10 days."
    • addedInput schema / properties / filter_group_type
      Added value: +{
      +  "default": "and",
      +  "description": "Only `and` is supported by the API within one group.",
      +  "title": "Filter Group Type",
      +  "type": "string"
      +}
    • addedInput schema / properties / filters
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "List of {dimension, operator, expression}. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex.",
      +  "title": "Filters"
      +}
    • addedInput schema / properties / no_cache
      Added value: +{
      +  "default": false,
      +  "description": "Bypass the response cache for this call.",
      +  "title": "No Cache",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / period
      Added value: +{
      +  "default": "",
      +  "description": "Named range: last_7_days, last_28_days, last_3_months, last_month, this_month, last_16_months.",
      +  "title": "Period",
      +  "type": "string"
      +}
    • addedInput schema / properties / response_format
      Added value: +{
      +  "default": "tsv",
      +  "description": "`tsv` (default, compact) or `json`.",
      +  "title": "Response Format",
      +  "type": "string"
      +}
    • addedInput schema / properties / row_limit / description
      Added value: +"Rows returned. Default 100, capped at 1000."
    • addedInput schema / properties / site_url / description
      Added value: +"`sc-domain:example.com` for a domain property, or `https://example.com/` with the trailing slash for a URL-prefix property. Call gsc_sites if unsure."
    • addedInput schema / properties / start_row
      Added value: +{
      +  "default": 0,
      +  "description": "Zero-based pagination offset.",
      +  "title": "Start Row",
      +  "type": "integer"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "default": "web",
      +  "description": "web, image, video, news, discover or googleNews.",
      +  "title": "Type",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "site_url",
      -  "date_from",
      -  "date_to"
      -]New value: +[
      +  "site_url"
      +]
  3. First observedv2.0.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds real value on top: default window semantics, that today's partial data is included to match the UI, and the return contract (a `# meta` line plus TSV table, or JSON with `meta`/`rows`). It stops short of disclosing cache lifetime or quota/rate-limit behavior, which matters for a tool with a no_cache switch.

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?

Front-loaded with purpose, then defaults, then an example, then the return shape — a sensible reading order with no filler. Minor redundancy: the data_state=all default is restated in prose when the schema already declares it, and the blank-line paragraph breaks make it longer than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter query tool with an output schema and full schema coverage, the description covers what the structured fields cannot: date-default resolution, data freshness, response format, and how to continue paging. An agent has everything needed to call it correctly on the first try.

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 coverage is 100%, so the baseline is 3; the description earns an extra point by explaining the implicit default (empty dates resolve to a 28-day window) and by documenting the pagination contract via meta's start_row, which is cross-parameter behavior the schema cannot express. The example also demonstrates how period, dimensions and row_limit compose.

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 the Search Analytics report") plus the exact metrics returned (clicks, impressions, CTR, position). The line "This is the general-purpose tool" explicitly positions it against the many specialized siblings, so an agent can pick it without opening the 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 clear operating context: no dates means the last 28 days ending today with data_state=all, and a worked example shows a realistic parameter combination. It does not name an alternative tool or state when to prefer a specialized sibling over this one, so guidance is clear but not exclusionary.

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