Skip to main content
Glama

Search Analytics Report

gsc_search_analytics
Read-only

Retrieve Google Search Console performance data—clicks, impressions, CTR, and average position—by query, page, date, device, or country for a property and date range.

Instructions

Search Analytics (performance) report: clicks, impressions, CTR and average position grouped by dimensions, for a property and date range. Typical combos: daily trend [dimensions=["date"]], top queries [dimensions=["query"]], top pages [dimensions=["page"]], queries on one page [dimensions=["query"], filters=[{dimension:"page",expression:"...",operator:"equals"}]], device split [dimensions=["device"]], country split [dimensions=["country"]], query×page [dimensions=["query","page"]]. Dimensions: date, hour, query, page, country (ISO-3166 alpha-3), device (DESKTOP/MOBILE/TABLET), searchAppearance. Search type (type): web (default), image, video, news, discover, googleNews. Aggregation: auto (default), byPage, byProperty. Filter operators: contains, equals (default), notContains, notEquals, includingRegex (RE2), excludingRegex (RE2). Data lags ~2 days (dataState "all" includes fresher partial data). Max 25,000 rows per call; paginate with startRow. Results are top-N, sorted by clicks (by date when grouping by date); sortBy/sortOrder re-sort and minImpressions/minPosition/maxPosition filter the returned rows, e.g. page-two opportunities: dimensions ["query","page"], rowLimit 5000, minPosition 11, maxPosition 20, minImpressions 100, sortBy impressions.

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_search_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoSearch type: web (default), image, video, news, discover, googleNews.
sortByNoRe-sort returned rows by clicks, impressions, ctr or position (the API itself orders by clicks).
endDateNoYYYY-MM-DD (PT). Overrides dateRange when both dates are given.
filtersNoFilters, all ANDed: {dimension, expression, operator?}.
siteUrlNoProperty like https://www.example.com/ or sc-domain:example.com. Omit if the account has exactly one property.
rowLimitNo1-25000, default 1000.
startRowNoZero-based row offset for pagination.
dataStateNoall (fresher, partial) or final (default).
dateRangeNoTODAY, YESTERDAY, LAST_7_DAYS, LAST_30_DAYS, MONTH_TO_DATE, YEAR_TO_DATE, LAST_MONTH (default LAST_30_DAYS) — sugar over explicit dates.
sortOrderNodesc or asc; default desc, but asc (best first) for position.
startDateNoYYYY-MM-DD (PT). Overrides dateRange when both dates are given.
dimensionsNoGrouping dimensions, see tool description; default ["date"].
saveToPathNoWrite the result as CSV to this file instead of returning a table (recommended above ~200 rows); returns the path and a preview.
maxPositionNoKeep only rows with average position <= this (e.g. 20).
minPositionNoKeep only rows with average position >= this (e.g. 11 for page two).
minImpressionsNoKeep only rows with at least this many impressions.
aggregationTypeNoauto (default), byPage, byProperty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond readOnlyHint, it discloses the ~2-day data lag, that dataState 'all' includes fresher partial data, the 25,000-row cap, startRow pagination, that results are top-N by clicks (by date when grouping by date), that sortBy re-sorts only returned rows, and the recommendation to use saveToPath above ~200 rows. These are non-obvious traits an agent could not infer from annotations.

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?

The purpose is front-loaded and the example combos are scannable, with no filler sentences. Some content duplicates the schema (search type values, filter operators, dimension list), which is mildly redundant given 100% schema coverage.

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 17-parameter tool with no output schema, the description covers data freshness, pagination, row caps, sorting caveats, and result-size handling (CSV via saveToPath). The shape of returned rows (dimension keys plus metric columns) is not described, which is the only meaningful gap.

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 still adds value by showing how dimensions, filters, and sortBy compose (e.g. the page-two example combining dimensions, rowLimit, min/maxPosition, minImpressions, sortBy) and by spelling out valid dimension values and filter operators. The additions are illustrative rather than exhaustive re-statements.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb+resource ('Search Analytics (performance) report') and enumerates the metrics returned (clicks, impressions, CTR, average position) plus the grouping mechanism. It doesn't explicitly position itself against gsc_quick_report or gsc_period_comparison, so sibling differentiation is left implicit.

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?

It gives concrete when-to-use recipes (daily trend, top queries, top pages, device/country split, query×page) and a fully worked page-two opportunity call with parameters. It lacks an explicit exclusion rule or a named alternative for simpler reporting, which keeps it below 5.

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