Skip to main content
Glama

Generate robots.txt rules for AI crawlers

generate_ai_robots_txt
Read-only

Generate robots.txt rules for AI crawlers from a policy: "open" (allow all), "balanced" (allow search and user-triggered fetchers, block bulk training crawlers) or "block" (block all). Optional per-bot overrides, allowed/blocked paths, sitemap and crawl delay. No network access.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_ai_robots_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNobalanced
site_urlNo
overridesNoe.g. {"GPTBot":"allow","CCBot":"block"}
allow_pathsNo
crawl_delayNo
sitemap_urlNo
disallow_pathsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly=true, destructive=false and openWorld=false, so 'No network access' largely restates structured data. The description adds useful semantics about what each policy produces, but says nothing about the result — since each policy yields different rules, the agent cannot tell whether output is a string, a file path, or a rule list.

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 sentence that front-loads the action and then the policy options. It reads as a run-on and squeezes the optional features together, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should say what the caller receives; it does not. With zero required parameters and seven options, an agent also lacks guidance on whether site_url is effectively needed for meaningful output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 14%, so the description carries real burden and mostly delivers: it explains policy values, per-bot overrides, allow/block path lists, sitemap and crawl delay. The one gap is site_url, which is never mentioned and whose role in the generated output is unclear.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Generate robots.txt rules') and names the audience (AI crawlers), which separates it fairly well from siblings like generate_llms_txt. It never explicitly contrasts with those siblings, so it stops short of the top mark.

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?

By defining what each policy value means ('open' allow all, 'balanced' allow search and user-triggered fetchers, 'block' block all), it gives the agent the information needed to choose a value. It offers no exclusions or pointer to check_ai_crawler_access as a related alternative.

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