Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Run a Search Console query

search_console_query
Read-onlyIdempotent

Query Google Search Console performance data by query, page, country, device, date, and search appearance, with filters, search types, and paging to analyze search traffic.

Instructions

Any Search Console question: raw searchanalytics.query by query, page, country, device, date or searchAppearance, with filters, search type (web, image, video, news, Discover) and paging.

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

Input Schema

NameRequiredDescriptionDefault
siteNoSite as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site.
typeNoSearch type, default web.
periodNoNamed date range ending on the last settled day. Default last_28_days.
filtersNoAll filters must match (AND).
end_dateNoEnd date YYYY-MM-DD. Defaults to the last settled day (Search Console lags 2 to 3 days).
row_limitNoRows to return, default 100, max 25000.
start_rowNoRow offset for paging.
data_stateNofinal (default) or all to include fresh, still-changing data.
dimensionsNoGroup by these. Empty for site totals.
start_dateNoStart date YYYY-MM-DD. Overrides period.
aggregation_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds that filters are supported and that paging exists, but says nothing about latency, row cost limits, or what the response looks like — acceptable but thin given annotations carry most of the weight.

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?

A single front-loaded sentence that opens with the broad use case then lists capabilities compactly. It is dense but not padded; the list form is efficient, though the fragmentary style is slightly harder to parse than a structured clause.

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

Completeness3/5

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

With 11 parameters and no output schema, the description should at least sketch what a row of results contains (dimension values plus clicks/impressions/CTR/position). It omits return shape and any note on aggregation_type, which the schema leaves undocumented, leaving a noticeable gap for an agent planning to consume results.

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 description coverage is 91%, so the schema already documents site, type, period, dates, row_limit, start_row, dimensions and filters in detail. The description largely restates the enum values already present in the schema rather than adding syntax or interaction rules (e.g., how period interacts with start_date), so baseline 3 applies.

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 specific verb+resource ('raw searchanalytics.query') and enumerates the queryable dimensions (query, page, country, device, date, searchAppearance), which lets an agent separate it from curated siblings like top_queries or site_overview. The 'raw' framing implies a lower-level primitive but never explicitly contrasts it with those siblings, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Any Search Console question' gives implied scope but no explicit when-to-use versus the many prebuilt siblings in the catalog (top_queries, top_pages, site_overview). There are no exclusions, prerequisites, or named alternatives, leaving the agent to infer routing.

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