Skip to main content
Glama

Robots.txt Checker API - can I crawl this URL, AI bot blocks

robots_txt_checker
Read-onlyIdempotent

Call before your crawler, scraper or AI agent fetches a page: is this URL allowed for your user agent, and which exact robots.txt line decided it (RFC 9309: longest match, Allow wins ties, * and $ wildcards, missing file = allowed, server error = disallowed). Plus the AI crawler matrix of the site (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot, Bytespider, Meta and 10 more: blocked or allowed), crawl-delay, sitemaps, Content-Signal, llms.txt, a change hash for monitoring and syntax issues. Up to 25 URLs per call, live, no key needed for the source, ~0.2-1 s per site. For SEO tools, RAG pipelines, web agents and publishers auditing AI bot access. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/robots-txt-checker.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "https://www.nytimes.com/section/world",
      "userAgent": "GPTBot"
    },
    "name": "robots_txt_checker"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPage URL or domain to check, e.g. https://www.nytimes.com/section/world
urlsNoInstead of url: up to 25 page URLs or domains
userAgentNoYour crawler's product token or full User-Agent string, e.g. GPTBot or 'Mozilla/5.0 (compatible; MyBot/1.0)'. Empty = only the AI crawler matrix and '*' rules
aiCrawlersNoInclude the allowed/blocked matrix for 17 AI crawlers + Googlebot/Bingbot
includeRobotsTxtNoAlso return the raw robots.txt text (first 20,000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent, and the description adds substantial behavior beyond them: RFC 9309 decision semantics (longest match, Allow wins ties, missing file = allowed, server error = disallowed), the batch cap of 25 URLs, latency of roughly 0.2-1 s per site, and full access/rate-limit tiers (5 calls/day per IP, X-API-Key, x402 at $0.002/call). An agent knows cost, prerequisites, and failure semantics before invoking.

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?

One dense but well-ordered paragraph: purpose, decision rules, payload contents, audiences, throughput, pricing. Every clause carries information, though the pricing block with raw URLs and currency symbols is closing-fluff that could be compressed without losing decision value.

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?

There is no output schema, so the description carries the full burden and does so: it enumerates the returned artifacts (per-URL verdict with deciding line, 17-crawler AI matrix plus Googlebot/Bingbot, crawl-delay, sitemaps, Content-Signal, llms.txt, change hash, syntax issues). Nothing an agent needs in order to call this correctly or interpret the result is missing.

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 every parameter is already documented in the input schema, which sets the baseline at 3. The description reinforces the 25-URL batch limit and the per-site timing but adds no syntax or format detail about url vs. urls, userAgent, or the boolean flags beyond what the schema states.

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?

The opening sentence names a specific action (check whether a URL is allowed for your user agent) and states the decisive output (which exact robots.txt line decided it), plus the auxiliary payload (AI crawler matrix, crawl-delay, sitemaps, llms.txt, change hash). An agent can immediately tell this apart from a general site-readiness or URL-mapping tool without opening the schema.

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

Usage Guidelines4/5

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

The trigger is explicit and front-loaded: 'Call before your crawler, scraper or AI agent fetches a page,' with named audiences (SEO tools, RAG pipelines, web agents, publishers auditing bot access). It lacks an explicit when-not or a named alternative tool, which keeps it from a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources