robots.txt Check
robots_txt_checkFetches and parses a site's robots.txt, reporting user-agent rules, sitemaps, and parse warnings. Flags wildcard disallow and 5xx responses that risk deindexing.
Instructions
Fetch and parse a site's robots.txt per RFC 9309. Reports every user-agent group with its Allow/Disallow rules, the declared sitemaps, and any lines that could not be parsed. Flags the two failures that silently deindex a site: a wildcard Disallow: /, and a robots.txt that returns 5xx (which Google treats as "disallow everything").
Args:
site (string): domain or any URL on it, e.g. 'example.com'.
response_format ('markdown' | 'json'): output format (default 'markdown').
Returns: { found, status, group_count, sitemaps[], blocks_everything, groups[{agents[], rules[], crawl_delay}], parse_warnings[], findings[] }.
Example: "What does example.com's robots.txt allow?" -> robots_txt_check(site="example.com").
For AI-crawler specifics use ai_crawler_access instead — it resolves each known AI bot against these rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site domain or any URL on it, e.g. 'example.com'. Only the origin is used. | |
| response_format | No | Output format: 'markdown' for a human-readable summary (default) or 'json' for the full structured payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| found | Yes | ||
| groups | Yes | ||
| status | Yes | ||
| findings | Yes | ||
| sitemaps | Yes | ||
| group_count | Yes | ||
| parse_warnings | Yes | ||
| blocks_everything | Yes |