Skip to main content
Glama

搜尋引擎與 AI 爬蟲工具箱

產生 robots.txt

generate_robots_txt
Read-onlyIdempotent

產生 robots.txt:allow_all、block_training(封鎖 AI 訓練保留搜尋)、block_all_ai、block_all,可加不抓路徑與 Sitemap。

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_robots_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
sitemapNo
disallowNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds useful mode semantics, especially for block_training, but it does not clarify whether the tool returns robots.txt content or writes a file, nor what the output format is.

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?

The description is a single compact sentence with the main purpose front-loaded. It enumerates the modes and optional additions without unnecessary wording.

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?

For a simple generator with three optional parameters and no output schema, the description covers the mode choices and optional disallow/Sitemap inputs. However, it omits the default behavior when mode is not supplied and does not describe the return value or parameter formatting, leaving meaningful gaps.

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 0%, so the description must carry parameter meaning. It maps the mode enum to named options and notes that disallow paths and a Sitemap can be added, but it does not explain the difference between allow_all, block_all_ai, and block_all, nor the expected format of disallow and sitemap.

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?

The description states a specific verb and resource: generating robots.txt. It also enumerates the available modes, so the agent knows the tool's core purpose. It does not explicitly distinguish itself from the sibling test_robots_txt, so it falls short of a 5.

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

Usage Guidelines3/5

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

The description lists the mode options and briefly explains that block_training blocks AI training while retaining search, which gives implied usage guidance. However, it does not state when to choose each mode or when to use this tool instead of test_robots_txt.

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