Skip to main content
Glama

Check robots.txt

check_robots_txt
Read-onlyIdempotent

Fetch a public robots.txt and report whether the wildcard group blocks the site and whether Sitemap lines are absolute. Use this when you have a URL, not a pasted file.

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

Input Schema

NameRequiredDescriptionDefault
urlYesA public page or a robots.txt URL. A page URL is resolved to /robots.txt on that origin.

Output Schema

NameRequiredDescriptionDefault
textYes
issuesYes
statusYes
documentYes
finalUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety and network profile is covered. The description adds the useful detail that only 'public' resources are fetched and names the two specific checks performed. It says nothing about failure behavior when robots.txt is absent or unreachable, redirects, or caching, which matters for an idempotent network read.

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?

Two sentences, zero filler: the capability and its two output claims come first, then the usage condition. Nothing is repeated from the title and no sentence could be dropped without losing 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 one-parameter tool with annotations and an output schema, the description covers what is fetched, what is checked, and when to prefer it. The only real omission is what happens for missing or malformed robots.txt, which is a minor gap given the output schema carries the return 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?

With a single parameter at 100% schema description coverage, the schema already explains that a page URL is resolved to /robots.txt on that origin. The description's 'public' qualifier adds a mild constraint but no syntax, format, or edge-case detail beyond the schema, so baseline 3 applies.

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 pairs a specific verb and resource ('Fetch a public robots.txt') with the exact analysis performed ('whether the wildcard group blocks the site and whether Sitemap lines are absolute'). That is far more precise than a generic 'check robots.txt'. It does not, however, contrast itself with adjacent sibling checks such as check_http_headers or check_ssl, so differentiation relies on the resource name alone.

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?

'Use this when you have a URL, not a pasted file' gives both positive context and an explicit exclusion, which is real routing guidance. It stops short of naming the alternative tool for the pasted-file case, so the agent must still infer which sibling handles raw text input.

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.