Skip to main content
Glama

Sitemap and robots.txt reader

sitemap_reader
Read-onlyIdempotent

List a website's pages from its sitemap: reads robots.txt (sitemaps, allow/disallow rules for all crawlers, crawl-delay), then the sitemap(s), following sitemap indexes and .gz files, and returns page URLs with last-modified dates. Use before crawling or summarising a site, to find new or updated pages, or to check what crawlers may access. Send a site URL or a sitemap URL; optional limit (default 1000, max 5000). Errors: 400 bad or private URL. Price: $0.005 USDC per call (x402).

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

Input Schema

NameRequiredDescriptionDefault
urlYesWebsite (any page) or a sitemap .xml URL
limitNoMax page URLs to return, 1-5000 (default 1000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), and the description adds genuinely new context: recursion through sitemap indexes and .gz files, last-modified dates in the result, 400 on private/bad URLs, and a $0.005 x402 price. It leaves one behavioral ambiguity — whether disallowed paths are filtered out of the returned URLs or only reported — which keeps it from 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.

Conciseness5/5

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

Three tight sentences: purpose and mechanics first, usage contexts second, call parameters/errors/pricing last. No filler, and the most decision-relevant information is front-loaded.

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

Completeness5/5

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

Given a two-parameter, no-output-schema tool, the description covers inputs, defaults, traversal behavior, what is returned (URLs plus last-modified), error conditions, and cost. Nothing an agent needs to decide to call it or to interpret success is missing.

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 both parameters are already documented with types and ranges. The description restates the default (1000) and max (5000) and clarifies that a site URL or sitemap URL is accepted, but adds no semantics beyond what the schema says; baseline 3 applies.

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 specific verb and resource ('List a website's pages from its sitemap') and enumerates the actual mechanics: robots.txt rules, sitemap indexes, .gz files. This clearly separates it from siblings like broken_link_check or seo_page_audit, which operate on individual pages rather than site-wide URL discovery.

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?

Gives concrete use cases: before crawling or summarising a site, finding new/updated pages, and checking crawler access. It does not name an alternative tool or state when not to use it (e.g., single-page extraction), so it stops short of explicit routing guidance.

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