Skip to main content
Glama

Agent Data Tools: Web, documents and search

Robots.txt check: may this crawler fetch this URL?

robots
Read-only

Read a site's robots.txt and say whether a crawler may fetch a URL, by RFC 9309 rules as Google applies them (most specific user-agent group, longest matching Allow or Disallow, Allow on ties, * and $ wildcards). Returns the deciding rule, the group used, the rule count and the sitemaps listed. A missing robots.txt (4xx) allows everything. Use before scraping or crawling a site politely; for the sitemap URLs themselves use sitemap. Example: url=https://www.google.com/search. Price $0.001/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "robots"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page URL to check (its site's /robots.txt is read)
agentNoCrawler user agent or product token (default *)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint/destructiveHint=false, it discloses the evaluation rules, the 4xx-missing-file behavior ('allows everything'), what the response contains (deciding rule, group, rule count, sitemaps), and the billing model ($0.001/call, first 10 free, failed calls free, repeats not free). The cost-warning also explains why the call is not free to repeat, which is the practical consequence behind idempotentHint=false.

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?

Purpose and rule set are front-loaded, and the sibling pointer and pricing follow in a logical order with no filler sentences. The paragraph is dense with parentheticals, though, and the billing clause is longer than it needs to be.

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?

With no output schema, the description compensates by enumerating return fields, and it covers the key edge case (missing robots.txt) plus cost behavior. Nothing an agent needs to invoke it correctly appears to be 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 both parameters are already documented; the description adds only an inline example URL. The note that the site's /robots.txt is derived from the page URL is mirrored in the schema, so it adds no new parameter meaning.

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?

States a specific verb and resource ('Read a site's robots.txt and say whether a crawler may fetch a URL') plus the exact rule set applied (RFC 9309, most-specific group, longest match, Allow on ties). It also explicitly separates itself from the sitemap sibling, so an agent can pick it 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 Guidelines5/5

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

Gives a direct when-to-use ('before scraping or crawling a site politely') and routes the adjacent case elsewhere ('for the sitemap URLs themselves use sitemap'). The alternative is named with the condition that selects it, leaving little to infer.

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