Skip to main content
Glama
jabeer4148-ops

google-measurement-mcp

Query Search Console performance data

gsc_search_analytics_query
Read-onlyIdempotent

Get clicks, impressions, CTR, and average position from Search Console, grouped by dimensions such as query, page, or device. Use this SEO analysis tool with custom date ranges.

Instructions

Returns clicks, impressions, CTR and average position from Search Console, grouped by the dimensions you choose. This is the primary SEO analysis tool. siteUrl must be the exact string from gsc_list_sites. Dates are YYYY-MM-DD only — relative forms like '28daysAgo' are NOT supported here (unlike the GA4 tools). Data lags roughly 2-3 days; use dataState='all' to include fresh partial data. Returns at most 25 rows by default while the API itself allows up to 25,000, so do not assume you are seeing everything — raise limit deliberately or narrow with filters. Page with startRow. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoSearch surface. Defaults to 'web'. Replaces the deprecated `searchType`.
limitNoMaximum rows to return. Defaults to 25 to protect the context window. Prefer narrowing the query over raising this.
endDateYesYYYY-MM-DD, inclusive.
siteUrlYesExact property string from Search Console: 'https://example.com/' (URL-prefix) or 'sc-domain:example.com' (Domain). Call gsc_list_sites for valid values.
startRowNoZero-based offset for paging. Search Console uses an offset, not a page token.
dataStateNo'final' (default) excludes incomplete data. 'all' includes fresh partial data. 'hourly_all' enables the 'hour' dimension.
startDateYesYYYY-MM-DD. Relative dates are NOT supported.
dimensionsNoGroup by these. 'hour' requires dataState='hourly_all'. Results are keyed in the order supplied.
aggregationTypeNoDefaults to 'auto'. Cannot be 'byProperty' when grouping or filtering by page.
dimensionFilterGroupsNoFilter groups: [{ groupType: 'and', filters: [{ dimension, operator, expression }] }]. Operators: contains, equals, notContains, notEquals, includingRegex, excludingRegex (RE2 syntax). You may filter on a dimension without grouping by it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already carry readOnlyHint, idempotentHint, and openWorldHint, and the description reinforces this with 'Read-only.' Beyond that, it discloses important behaviors the annotations cannot convey: data lags 2-3 days, dataState='all' surfaces fresh partial data, the default 25-row cap versus the API's 25,000 limit, the explicit warning not to assume full results, and offset-based paging. This is substantial behavioral context added on top of the annotations.

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?

Every sentence earns its place: purpose first, then the primary-tool designation, then prerequisites, date constraint, lag/freshness, row-limit warning, paging, and a closing 'Read-only.' The most critical constraints (exact siteUrl, date format) are front-loaded. No filler or repetition of schema content.

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 complex 10-parameter tool with no output schema, the description covers the essentials well: it states return metrics, grouping behavior, prerequisites, date format, data lag, and pagination limits. The only notable gap is the precise response row structure (how grouped results are keyed/serialized), which the description only hints at via 'grouped by the dimensions you choose'. Given the absent output schema and tool complexity, slightly more return-format detail would make it fully complete.

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 itself is unusually rich (each parameter has meaningful prose, e.g., limit's 'protect the context window' and startRow's 'offset, not a page token'). On the baseline-3 for full coverage, the description adds genuine semantic linkage: it connects dataState to the data-lag problem and reframes limit as a truncation risk that agents must deliberately raise. This goes slightly beyond what the schema states.

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?

The description names a specific verb ('Returns'), a specific resource (Search Console performance data), and the exact metrics returned (clicks, impressions, CTR, average position). It distinguishes itself from the GA4 siblings by noting relative dates are unsupported 'unlike the GA4 tools' and declares itself 'the primary SEO analysis tool', clearly differentiating it from the ga4_run_report and gsc_compare_periods siblings.

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?

The description provides strong contextual guidance: it declares itself the primary SEO tool, requires siteUrl to come from gsc_list_sites, warns that relative date forms are not supported (unlike GA4), and instructs to page with startRow and raise limit deliberately. However, it never explicitly states which sibling to use instead in any given scenario (e.g., when to prefer gsc_compare_periods or ga4_run_report), so the when-not-to-use routing is left implicit.

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