Skip to main content
Glama

get-excluded-pages

Read-onlyIdempotent

Find pages dropped from Yandex search within a scanned window and see the exclusion reason, status, and related URL for each.

Instructions

Pages DROPPED FROM SEARCH inside a time window, with the reason for each one (url + excluded_url_status, plus bad_http_status for HTTP_ERROR and target_url for redirect/canonical/duplicate cases). READ THE NATURE OF THIS DATA: API v4 has no "currently excluded pages" resource, only the event log /search-urls/events/samples, so this is built from REMOVED_FROM_SEARCH EVENTS in the scanned window, not from a live index snapshot. Events are deduplicated per URL with the latest one winning, so a page that dropped and came back is NOT reported as excluded — it is listed separately under returned_to_search. The window is bounded by limit/max_requests, so an older exclusion outside it is invisible, and summary_excluded_pages_count (the aggregate from get-summary, returned alongside) is a DIFFERENT kind of number that is not expected to match the length of this list. Deduplication spans ONE call: when continuing a walk with offset, pass the URLs from the previous returned_to_search in returned_urls, otherwise a page whose return fell in the earlier window will be reported as excluded again. There is no server-side event filter, so the tool walks the mixed stream page by page until it has collected limit excluded pages (at most max_requests page fetches — retries are not counted, so HTTP calls can be more) and reports next_offset/exhausted to continue the walk. Use when the user asks which pages dropped out of search and why, inside a scanned window. Do not use it for the aggregate excluded_pages_count; that number comes from get-summary and is a different kind of count. Do not use it for a single mixed page of events; call get-search-events-samples.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many EXCLUDED pages to collect (default: 20)
offsetNoEvent-stream offset to resume from (default: 0)
host_idYesHost ID
max_requestsNoCap on PAGE fetches made while walking the mixed event stream (default: 10). Retries of a failed fetch (429/5xx) are not counted, so the number of HTTP calls can be higher.
returned_urlsNoURLs already known to have come back to search — pass `returned_to_search` from the previous call when continuing a walk with `offset`. Deduplication only spans one call, so without this a page whose return fell in the earlier window is reported as excluded again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial context beyond annotations: data is built from REMOVED_FROM_SEARCH events, not a live index snapshot; deduplication is per URL with latest event winning and spans only one call; pages that returned are listed separately under returned_to_search; window bounds and max_requests cap behavior; retries not counted; and the need to pass returned_urls when continuing with offset. Annotations already cover read-only/idempotent/non-destructive, but the description carries crucial operational behavior.

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?

Front-loaded with the core definition before diving into caveats, and most sentences earn their place by explaining non-obvious data semantics. It is long but justified for a tool with several tricky behaviors, though minor repetition (deduplication explained twice) and heavy capitalization keep it from being perfectly tight.

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?

Given no output schema, the description still describes return shape sufficiently: url + excluded_url_status, bad_http_status, target_url, returned_to_search, and next_offset/exhausted for continuation. It covers all complexity around event-stream walking, pagination, and result interpretation, leaving no significant gaps.

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 100%, so the schema already documents all five parameters, including limit (excluded pages), max_requests (page fetch cap), offset, host_id, and returned_urls continuation semantics. The description largely reinforces these meanings rather than adding new parameter-level syntax or constraints beyond what the schema provides, so baseline 3 is appropriate.

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+resource: pages dropped from search inside a time window, with reasons. Explicitly distinguishes from sibling results by saying it is not the aggregate from get-summary and not a single mixed page of events, naming get-search-events-samples as the alternative.

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

Usage Guidelines5/5

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

Gives explicit when-to-use (user asks which pages dropped out of search and why inside a scanned window) and when-not-to-use, naming get-summary for aggregate excluded_pages_count and get-search-events-samples for a single mixed page of events. No inference required.

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