Skip to main content
Glama
Search Console MCP

Search Console MCP

Query search performance data

search_analytics
Read-onlyIdempotent

Runs raw Search Console performance queries for clicks, impressions, CTR and average position, broken down by query, page, country, device, date or hour, with filters. Use it for breakdowns the specialized tools don't cover.

Instructions

Runs a raw Search Console performance query: clicks, impressions, CTR and average position, broken down by any mix of query, page, country, device, date, hour and search appearance, with filters. Use it for anything the specialised tools do not cover. Rows come back sorted by clicks unless order_by says otherwise.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLength of the period in days, used when start_date is not given. Default 28.
orderNoSort direction. Default desc, or asc for position (best first).
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.
order_byNoSort by this metric instead of clicks. The tool then reads up to 25,000 rows and sorts them locally, so "top by impressions" is correct within that scan.
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.
row_limitNoMaximum number of rows to return.
start_rowNoZero-based offset, for paging through results.
data_stateNo"all" (default) matches the Search Console website: complete days, plus partial numbers for recent days if the period reaches that far. "final" leaves out any day that is not final yet. "hourly_all" is for the hour dimension.all
dimensionsNoHow to break the numbers down, in order. Empty returns one row of totals. "searchAppearance" cannot be combined with other dimensions. "hour" needs data_state "hourly_all" and only covers the last few days.
start_dateNoFirst day of the period, YYYY-MM-DD in Pacific Time. Defaults to `days` before end_date.
search_typeNoWhich Google surface: web (default), image, video, news (the News tab), discover or googleNews.web
aggregation_typeNoHow impressions are counted: "byProperty" counts a search once however many of your pages appear, "byPage" counts each page. Leave unset for Google's default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuinely useful behavior beyond that — default sort order by clicks and the caveat that order_by triggers a local scan of up to 25,000 rows — but omits the truncation/paging consequences of row_limit and start_row, which matter for a tool returning up to 100,000 rows.

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?

Three sentences, front-loaded with what the query returns before the usage hint and the sort caveat. Only minor filler in phrases like "with filters", which the schema describes in far more detail.

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?

Covers purpose, scope, returned metrics and default ordering for a 13-parameter tool with no output schema. Detail for the trickier parameters (filters syntax, data_state, hour dimension limits) lives in the schema, which is fully covered, so the description does not need to repeat it.

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 coverage is 100%, so all 13 parameters including complex ones like filters, data_state and aggregation_type are already documented in the schema. The description only restates the default sort behavior for order_by, adding little meaning the schema does not already supply; 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 and resource ("Runs a raw Search Console performance query") plus the exact metrics and the full dimension set it can break down by. The word "raw" and the instruction to use it for what specialised tools don't cover distinguish it from the many focused siblings like find_quick_wins or get_performance_overview.

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 a clear routing rule: use this for anything the specialised tools do not cover, implying the siblings handle common cases. It stops short of naming which sibling wins for which task or stating any exclusion, so the agent must still judge edge cases itself.

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