Skip to main content
Glama

Site Insights by KKV Labs

Search queries

top_queries
Read-onlyIdempotent

Every Google search query for one site from Search Console, with clicks, impressions, CTR, position and their change against a comparison period. Ranked by clicks, then impressions (sort_by and sort_order change the order), paged. Filters for text in the query, a page, device, country and search type.

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

Input Schema

NameRequiredDescriptionDefault
rawNotrue returns Google's response exactly as Google sent it, unchanged.
pageNoOnly queries that led to pages whose URL contains this text.
siteNoThe site's domain (example.com) or its label. Optional when the account has exactly one site switched on. An unknown name returns an error that lists the switched on sites.
deviceNo
offsetNoRow to start from, for the next page. Default 0.
periodNoDate range. Default last_28_days. Named ranges end when the data is complete.
compareNoWhat to compare with. Default previous_period (same length, right before).
countryNoISO 3166-1 alpha-3 country code, for example usa.
excludeNoLeave out queries containing this text, for example the brand name.
sort_byNoDefault clicks (ties broken by impressions).
containsNoOnly queries containing this text.
end_dateNoCustom end date YYYY-MM-DD.
page_sizeNoRows per page, default 1000, max 5000. Every row is available through paging.
data_stateNofinal (default) = complete data only; all = include fresh, still changing data.
sort_orderNoDefault desc, except position and query which default to asc.
start_dateNoCustom start date YYYY-MM-DD. Overrides period.
search_typeNoSearch Console search type. Default web.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: default ranking by clicks with impressions as tie-breaker, that sort_by/sort_order override it, that results are paged, and that metrics carry a change value against a comparison period. It stops short of describing pagination limits or how changes are surfaced, but the added context is substantive.

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?

Three tight sentences: what the data is, how it is ordered and paged, then what can be filtered. The core identity and returned metrics are front-loaded and no sentence is padding.

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 read tool with no output schema, the description covers the essentials: scope, returned metrics, default ordering, paging and filterable dimensions, while the schema carries defaults and enum semantics. What is missing is minor, such as how the comparison change is returned or any note about data freshness (data_state is only explained in the schema).

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 94%, so nearly every one of the 17 parameters is already documented, including defaults for sort_by, sort_order and page_size. The description's parameter references (sort_by, sort_order, page, device, country, search type) largely restate what the schema says, so it sits at the baseline of 3 with no meaningful semantic addition.

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 resource ('Every Google search query for one site from Search Console') and the returned metrics (clicks, impressions, CTR, position plus period-over-period change), which is far more than a restatement of the name. It does not, however, distinguish itself from the close sibling top_pages, so an agent must infer that this tool is query-level rather than page-level.

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?

Usage is implied rather than stated: the mention of filters for query text, page, device, country and search type hints at when the tool is appropriate, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as top_pages or search_console_query. An agent can work it out, but only by reasoning from the parameter list.

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