Check robots.txt for a URL
check_robotsFetches a site's robots.txt and decides whether a specified crawler may fetch a URL, returning the allow/disallow decision, matched rule, crawl-delay, and sitemap URLs.
Instructions
Fetch the site's robots.txt and decide whether a crawler may fetch the URL.
Uses RFC 9309 / Google semantics: the most specific user-agent group applies (groups with the same token are merged, '' is the fallback); the longest matching rule wins and Allow wins ties; '' and '$' are wildcards. A 4xx robots.txt means allow-all, a 5xx or unreachable robots.txt means disallow-all. Returns the decision, the matched group and rule (with line number), Crawl-delay and the Sitemap URLs listed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "check_robots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL, e.g. https://example.com/page | |
| user_agent | No | Crawler user agent or product token, e.g. Googlebot, Bingbot, GPTBot, * | Googlebot |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||