Skip to main content
Glama

Google Ads & Meta Ads

Search Console: Query Search Analytics

gsc_query_search_analytics
Read-onlyIdempotent

Report organic Google Search performance for one Search Console property of the user's connected Google login: clicks, impressions, CTR and average position, grouped by query, page, country, device, search appearance and/or date over a date window, with filters (one landing page, non-brand queries, one country, a URL pattern) and the search surface (web, image, video, news, Discover). Typical uses: top queries, clicks by landing page, daily trend, mobile vs desktop, which queries send traffic to one URL. Rows come back one object per row keyed by the dimension names, ordered by clicks; one page per call, up to 5000 rows (default 100), pass start_row for the next page. Search Console counts organic results only — never present its clicks as paid traffic or compare them with ad clicks as like for like. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
filtersNoRow filters, all ANDed: each {dimension, operator, expression}. Examples: one landing page {"dimension":"page","operator":"equals","expression":"https://example.com/pricing"}; non-brand queries {"dimension":"query","operator":"notContains","expression":"acme"}; one country {"dimension":"country","operator":"equals","expression":"usa"}; mobile only {"dimension":"device","operator":"equals","expression":"MOBILE"}; a URL pattern {"dimension":"page","operator":"includingRegex","expression":"/blog/.*"}. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex (RE2 syntax). A filtered dimension need not be a grouping dimension.
end_dateNoLast day, YYYY-MM-DD or relative. The last 2-3 days are partial unless data_state is all. Default: 3 days ago.
site_urlNoThe Search Console property: sc-domain:example.com (a domain property) or https://example.com/ (a URL-prefix property), as gsc_list_sites lists it. A bare domain is matched against both forms. May be omitted when the connected login reaches exactly one property.
row_limitNoRows per call, 1-5000 (default 100), ordered by clicks descending. Pass start_row to page.
start_rowNoRow to start at, counting from 0; for paging.
data_stateNofinal (default) returns only finalised days; all includes the last 2-3 partial days.
dimensionsNoGroup rows by any of: query (the search term), page (the landing URL), country (ISO 3166-1 alpha-3, e.g. usa), device (DESKTOP, MOBILE, TABLET), searchAppearance (rich-result type), date. Omit for one totals row. Order is the key order in each row.
start_dateNoFirst day, YYYY-MM-DD or relative (yesterday, 7daysAgo, 28daysAgo). Dates are Pacific time, as Search Console counts them. Default: 28 days ending 3 days ago, the freshest window whose data is final.
search_typeNoWhich search surface: web (default), image, video, news, discover, googleNews. Discover and Google News allow no query dimension.
aggregation_typeNoHow clicks and impressions are counted: auto (default — by page when page is a dimension or filter, else by property), byPage, byProperty. Impressions by property count a result once per query; by page once per URL shown.

Output Schema

NameRequiredDescriptionDefault
rowsYesOne object per row: each dimension by name, then clicks, impressions, ctr, position. Ordered by clicks descending.
siteYesThe property read, as Google spells it.
totalsYesSums over the returned rows only.
endDateYesLast day of the window, YYYY-MM-DD.
startRowYesThe first row's offset; pass returnedRows + startRow to continue.
startDateYesFirst day of the window, YYYY-MM-DD.
dimensionsYesDimension names, in row key order.
returnedRowsYesRows in `rows`.
responseAggregationTypeNoHow Google aggregated: byPage or byProperty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/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 goes well beyond them: result ordering by clicks, one page per call with up to 5000 rows and default 100, continuation via start_row, the last 2-3 days being partial unless data_state is all, and Pacific-time date semantics. The explicit warning not to present these clicks as paid traffic is a genuinely useful interpretive constraint an agent would not get from structured fields.

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?

Purpose is front-loaded in the first clause, followed by scope, then usage examples, then return/paging behavior and the organic-only caveat — a sensible ordering. The prose is dense and semicolon-heavy with some run-on constructions, but no sentence is filler.

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 10-parameter analytical query tool with an output schema, the description covers everything an agent needs to call it correctly: default date window, default row limit, pagination, grouping behavior with no dimensions yielding a single totals row, and surface restrictions. Return-value explanation is appropriately absent since an output schema exists, and the row-shape note is a bonus rather than padding.

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% and the schema is richly annotated, so the baseline is 3. The description still adds workflow-level meaning by connecting row_limit/start_row into a paging protocol and by framing filters, dimensions and search_type as a coherent grouping-and-filtering model rather than isolated knobs. It does not restate enum values, which is correct since the schema already does that.

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 — reporting organic Search Console performance (clicks, impressions, CTR, average position) for one property — and enumerates the grouping dimensions and search surfaces. An agent can immediately tell this is the Search Console performance-reporting tool, distinct from site-management siblings like gsc_list_sites or gsc_submit_sitemap.

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 usage scenarios (top queries, clicks by landing page, daily trend, mobile vs desktop, queries driving traffic to one URL) that map well onto the dimensions parameter. It also imposes a clear scope rule — organic results only, never treat clicks as paid or compare with ad clicks — which functions as a when-not-to-use boundary. It stops short of naming an alternative tool for adjacent analyses such as period comparison.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources