Skip to main content
Glama

Check robots.txt and the sitemaps

check_sitemaps
Read-onlyIdempotent

Audits robots.txt, sitemap indexes and listed URLs; reports blocked/ignored rules, load/parse failures, URL errors, redirects, noindex/canonical issues, invalid lastmod and hreflang mismatches.

Instructions

Reads a site's robots.txt and every sitemap it names (or /sitemap.xml), sitemap indexes included, then each address listed. Reports: robots.txt rules that block the site or are ignored; sitemaps that don't load or don't parse; how many addresses each lists; listed addresses that answer an error, redirect, are disallowed by robots.txt, say noindex or name another page as canonical; lastmod dates that are invalid, in the future or all the same day; language alternates that disagree with the pages. Read-only, one request at a time.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe site's address, for example https://example.com
kindNoShow only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again.
delay_msNoPause between two requests to the site, in milliseconds (one request at a time).
max_pagesNoHow many listed addresses to read (at most 1000).
ignore_robots_txtNoRead pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored.

Output Schema

NameRequiredDescriptionDefault
toolYes
factsYes
notesYes
passedYes
targetYes
readingYesHow to read this answer: the same lines end the text form
findingsYes
headlineYes
checked_atYes
robots_txtYes"ignored" only when the caller passed ignore_robots_txt
from_earlier_checkYesTrue when this answer re-reads an earlier check (because `kind` was given)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered; the description still adds meaningful behavior: one request at a time, an implicit rate/politeness model, and the fact that ignoring robots.txt is surfaced at the top of the report. It does not disclose scale limits or how long a full crawl may take, which keeps it off a 5.

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 action and scope in the first clause, then a compact semicolon-delimited list of what the report contains. The enumeration is long but each item is a distinct finding, so little is wasted; a minor cost is that report contents partly duplicate the output schema.

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 five-parameter, open-world crawl tool with an output schema and full annotations, the definition covers scope, politeness, the robots override condition, and the nature of findings. Nothing essential to calling it correctly is missing, though it could note expected duration or pagination of results for large sites.

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 coverage is 100%, so the baseline is 3; the schema already explains url, kind, delay_ms, max_pages and ignore_robots_txt in detail. The description adds only the default target '/sitemap.xml' and the one-request-at-a-time framing, without extra semantics for kind or max_pages 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 concrete verb ('Reads') over specific resources: robots.txt, every sitemap it names (or /sitemap.xml), sitemap indexes, and each listed address. The follow-on report enumeration makes clear this is a site-wide crawl audit rather than a single-page check, which separates it from siblings like check_page or check_site.

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 by the resource scope — an agent can infer this is the tool for robots.txt/sitemap health — but no alternative is named and there is no explicit when-to-use versus check_site or check_page. The only conditional guidance is parameter-level ('Pass true only when the user has said the site is theirs'), not tool-level routing.

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