Skip to main content
Glama

generate_robots_txt

Read-onlyIdempotent

Generate a corrected robots.txt for a site: keeps every existing rule, disables only rules that block search engines or AI answer crawlers from the whole site (training crawlers stay unless you ask), adds the Sitemap line, shows who can crawl before and after, and says where to paste it. Read-only: changes nothing. Uses 2 calls (1 if no change is needed).

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

Input Schema

NameRequiredDescriptionDefault
urlYesAny URL on the site; the origin is used
job_idNoFix job id (fx_...) from fix_top_issues; counts this call on that job
ai_crawlersNoanswer_engines (default): unblock AI answer crawlers only; all: also AI training crawlers; keep: leave AI rules as is

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / ai_crawlers / description
      Previous value: -"answer_engines (default): unblock AI search/answer crawlers only; all: also unblock AI training crawlers; keep: leave AI rules as they are"New value: +"answer_engines (default): unblock AI answer crawlers only; all: also AI training crawlers; keep: leave AI rules as is"
    • changedInput schema / properties / job_id / description
      Previous value: -"Fix job id from fix_top_issues (fx_...), so this call is counted on that job"New value: +"Fix job id (fx_...) from fix_top_issues; counts this call on that job"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so safety is covered; the description still adds real value with its preservation guarantee ("keeps every existing rule"), the narrow unblocking policy, the Sitemap line insertion, and an explicit cost of 2 calls (1 if no change is needed). It also explains that the output includes before/after crawlability and paste instructions, which goes beyond what the annotations declare.

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?

Front-loaded with the core action and its guarantees, then tacks on the operational details (read-only, 2 calls). It is a single dense, somewhat run-on sentence; the clause list is efficient but could be split for scannability without losing content.

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?

There is no output schema, and the description compensates by describing the return content: before/after crawlability plus where to paste the result. With only 3 parameters at full schema coverage and rich annotations, an agent has enough to invoke it correctly; only the url/job_id semantics remain thin.

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%, with the ai_crawlers enum and job_id origin already documented in the schema, so the baseline is 3. The description adds only a small amount of meaning, echoing the default behavior that training crawlers stay unless requested; it says nothing about the url parameter's origin-stripping behavior or the job_id accounting 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?

States a specific verb and resource ("Generate a corrected robots.txt for a site") and immediately scopes it: keeps existing rules, disables only whole-site blocking rules, adds a Sitemap line. That is a materially different operation from the sibling check_robots_txt, and the agent can tell them apart 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?

Gives clear context for when this applies (rules blocking crawlers from the whole site; training crawlers only if requested) and notes the call cost of 2 calls, 1 if no change is needed, which supports a generate-vs-check decision. It does not explicitly name check_robots_txt as the read-only alternative, so the when-not guidance is implied rather than stated.

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.