Validate robots.txt text
validate_robotsValidate robots.txt text against RFC 9309 and report errors, warnings and, for one URL path, which registry AI crawlers are allowed or blocked and by which rule. Read-only, no network access. Same engine as POST /api/validate. Up to 50,000 characters over MCP (the whole JSON-RPC request must also fit in 64 KB); for larger files use POST /api/validate or check_site.
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": {
"robots_txt": "<robots_txt>"
},
"name": "validate_robots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | URL path to test, starting with "/" (default "/"). | |
| robots_txt | Yes | The robots.txt file content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | ||
| path | No | ||
| stats | No | ||
| valid | Yes | ||
| errors | Yes | ||
| warnings | Yes | ||
| ai_crawlers | Yes | ||
| diagnostics | No | ||
| personal_agents | No |