Skip to main content
Glama

搜尋引擎與 AI 爬蟲工具箱

依 RFC 9309 測試某個 User-Agent 能否抓取某路徑

test_robots_txt
Read-onlyIdempotent

依 RFC 9309 測試某個 User-Agent 能否抓取某路徑。

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": {
      "robots": "<robots>",
      "user_agent": "<user_agent>"
    },
    "name": "test_robots_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
robotsYes
user_agentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and network profile is covered without the description's help. What the description omits is the operationally important behavior: whether it performs a live fetch over the network or evaluates the supplied block locally, and how the verdict is expressed. Net value added beyond annotations is near zero, so a below-baseline 3 rather than higher.

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

Conciseness3/5

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

One front-loaded sentence with no filler, which satisfies the conciseness test. But the brevity is under-specification rather than efficiency: it is a copy of the title, so every word is duplicated elsewhere and no information is added.

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

Completeness2/5

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

For a 3-parameter tool with no output schema and zero schema description coverage, the definition should explain the 'robots' input and what the verdict contains. Neither is covered, so an agent can construct a call but cannot predict or interpret the result.

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

Parameters2/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 the parameter burden and it does not. It alludes to user_agent and path only obliquely, and never explains the required 'robots' parameter at all — notably whether it is a URL, a domain, or raw robots.txt content, which is the single most consequential ambiguity here.

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

Purpose3/5

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

The sentence names a specific verb (測試, test) and specific objects (某個 User-Agent, 某路徑) and anchors the rule set to RFC 9309, so the purpose is decidable. However, it is a verbatim duplicate of the title with no added detail, and it draws no line against the sibling generate_robots_txt (produce rules) or verify_crawler_ip (identity check), leaving the agent to infer that this tool evaluates rather than generates rules.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus generate_robots_txt. An agent cannot tell whether this tool fetches the site's live robots.txt or evaluates a caller-supplied string, which is exactly the distinction that would drive tool choice. Only the implicit 'testing' framing hints at usage.

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