RobotsGate

v0.3.1
dev.workers.mike-tusa.robotsgate/robotsgate Checked 3 days ago Published 1 month ago

Generate, validate and check robots.txt rules for AI crawlers.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_crawlers List the AI crawler registry

Return RobotsGate's AI crawler registry: each crawler's robots.txt token, operator, category (training, dataset, search, user_fetch or other), whether the operator says it respects robots.txt, and a link to the operator's documentation, plus unverified entries and notes. Read-only, no network access. Same data as GET /api/crawlers.

ParameterTypeDescription
categorystringOptional: only crawlers in this category.

generate_robots Generate a robots.txt for AI crawlers

Build a robots.txt from per-category choices (allow, block or omit for training, dataset, search, user_fetch or other), optional per-token overrides, a default policy for other bots, paths, sitemaps and custom rules. Returns the file text, a per-crawler summary and notes. Read-only: it only returns text and changes nothing. Same engine as POST /api/generate.

ParameterTypeDescription
agentsobjectPer-token overrides, e.g. {"GPTBot": "block"}. Tokens: letters, digits, "_", "." and "-", up to 64 characters (not "*"). At most 100.
allow_pathsarrayPaths to allow explicitly. Each path starts with "/" or "*" and has no whitespace or "#". At most 100.
categoriesobjectAction per crawler category. Omitted categories get no group of their own.
custom_rulesstringExtra robots.txt lines appended after validation (max 20000 bytes).
datestringDate for the header comment (YYYY-MM-DD). Default: today (UTC).
defaultstringPolicy for "User-agent: *" (default allow).
disallow_pathsarrayPaths to disallow for "*" and for allowed AI groups. Each path starts with "/" or "*" and has no whitespace or "#". At most 100.
sitemapstringA single sitemap URL (alternative to sitemaps).
sitemapsarrayAbsolute http(s) sitemap URLs. At most 20.

validate_robots Validate robots.txt text

Validate 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.

ParameterTypeDescription
robots_txt *stringThe robots.txt file content.
pathstringURL path to test, starting with "/" (default "/").

check_site Check which AI crawlers a live site allows

Fetch a site's /robots.txt (http/https on the default port only; private, loopback and internal addresses are refused; up to 512,000 bytes; results cached for 5 minutes) and report, for one path, which registry AI crawlers are allowed or blocked, plus validation errors and warnings. Read-only: one GET of /robots.txt with a RobotsGate user-agent. Same engine as GET /api/check.

ParameterTypeDescription
url *stringSite URL or bare hostname, e.g. example.com. Only the scheme and host are used.
pathstringURL path to test, starting with "/" (default "/").