Skip to main content
Glama

analyze_robots_txt

Read-onlyIdempotent

Fetch and analyze a domain's robots.txt to inspect user-agent allow/disallow rules, sitemap entries, and crawl issues, and optionally test whether a specific path is allowed.

Instructions

Fetch and analyze a domain's robots.txt file. Returns the raw content, parsed allow/disallow rules per user-agent, listed sitemaps, and any issues. Optionally tests whether a specific path is allowed.

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": {
      "domain": "<domain>"
    },
    "name": "analyze_robots_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe domain to check (e.g. "example.com"). The tool will fetch https://<domain>/robots.txt.
testPathNoOptional URL path to test against the robots rules (e.g. "/private/page").
userAgentNoUser-agent to test the path against. Defaults to "*".*

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so safety is covered. The description adds useful behavior the annotations do not: it performs a live network fetch of https://<domain>/robots.txt and reports issues found in the file, which tells the agent to expect external dependency and possible failure modes. It does not cover error behavior on unreachable domains, keeping it below 5.

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, front-loaded with the core action, then the return payload, then the optional capability. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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?

With no output schema, the description compensates well by enumerating the four return components, so an agent knows what comes back. Only minor gaps remain: no statement about failure behavior for unreachable or absent robots.txt files, and no note on size or parsing limits for very large files.

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%, so domain, testPath, and userAgent are already fully documented including the default "*". The description only restates that path testing is optional; it adds no format nuance such as whether testPath must begin with a slash beyond what the schema example shows. 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 opens with a specific verb+resource pair ("Fetch and analyze a domain's robots.txt file") and enumerates the outputs (raw content, parsed rules per user-agent, sitemaps, issues). This clearly separates it from the sibling generate_robots_txt by implication, but it never explicitly contrasts reading a file versus generating one, so it stops 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?

Usage is implied rather than stated: the agent can infer it should call this to inspect an existing robots.txt, and the optional path test is described. There is no explicit when-not guidance, no mention of what happens with a missing/404 robots.txt, and no named alternative for authoring rules.

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