Skip to main content
Glama
ayrank-tools

ayrank-tools

Official
by ay-automate

robots.txt generator

ayrank_robots_txt_generate
Read-only

Draft a robots.txt that allows all known crawlers except the ones you block, with optional sitemap and blocked paths. Returns plain text only; use the test tool to check an existing file.

Instructions

Use to draft a robots.txt that allows every known crawler except the ones listed in block. It returns text only and writes nothing to any site. Not for testing an existing robots.txt (use ayrank_robots_txt_test).

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

Input Schema

NameRequiredDescriptionDefault
blockNoComma-separated crawlers to disallow. Known: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Google-Extended, Applebot-Extended, Googlebot, Bingbot.
sitemapUrlNoAbsolute http(s) URL of the sitemap.
blockedDirsNoComma-separated paths to disallow for every crawler, like /admin,/private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description reinforces this with "returns text only and writes nothing to any site," which tells the agent the output must be applied manually. It stops short of describing the shape of the returned text or how sitemap/blockedDirs lines are composed, so it is strong but not exhaustive beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, zero filler, with the core capability front-loaded and the return behavior and exclusion following. Every sentence carries distinct information.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter, all-optional generator with a fully documented schema and no output schema, the description covers intent, non-persistence, and return type. The only gap is any detail about how the generated robots.txt text is structured (ordering, sitemap directive placement), which is minor given the simple contract.

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 coverage is 100% and includes format hints and a list of known crawler tokens, so the schema does the heavy lifting. The description only references the block parameter implicitly ("except the ones listed in block") and adds no syntax or interaction detail for sitemapUrl or blockedDirs beyond what the schema provides.

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 ("draft a robots.txt") plus the exact scope of what the output allows (every known crawler except those in block). It also names the sibling it is not (ayrank_robots_txt_test), so an agent can distinguish generate-vs-test without opening either 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?

Explicit when-to-use (drafting a new robots.txt) and an explicit when-not-to-use with the named alternative for testing an existing file. Nothing about selection is left to inference.

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