Skip to main content
Glama

Sitemap Extractor API - all URLs of a website from its sitemaps

sitemap_extractor
Read-onlyIdempotent

Find a site's sitemaps (robots.txt Sitemap: lines, /sitemap.xml, sitemap indexes, .gz, .txt) and return up to 100 page URLs per request (default 20) with lastmod, changefreq and priority. For non-sitemap URLs (e.g. example.com/pricing), only the domain is used to discover sitemaps. Filter by case-insensitive substring with contains (returns count 0 and empty items if none match). No pagination; single request up to maxItems=100. Top-level summary reports total matching URLs found (summary.urls), sitemapsRead, foundVia, errors and truncated; cached and cacheAgeSeconds are always returned at top level. Errors return 400/429/502 JSON with error, message and code. Live fetch, ~1-5 s. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/sitemap-extractor.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "sitemaps.org",
      "maxItems": 10
    },
    "name": "sitemap_extractor"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoDomain or direct sitemap URL (.xml, .xml.gz, .txt), e.g. sitemaps.org or https://example.com/sitemap.xml. For non-sitemap page URLs, only the domain is used.
containsNoOptional case-insensitive substring filter on URLs, e.g. /blog/
maxItemsNoMaximum URLs to return (default 20, max 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "maxItems": 50,
      -    "url": "radarbg.com"
      -  }
      -]New value: +[
      +  {
      +    "maxItems": 10,
      +    "url": "sitemaps.org"
      +  }
      +]
    • changedInput schema / properties / contains / description
      Previous value: -"Only URLs containing this text, e.g. /blog/"New value: +"Optional case-insensitive substring filter on URLs, e.g. /blog/"
    • changedInput schema / properties / maxItems / default
      Previous value: -1000New value: +20
    • changedInput schema / properties / maxItems / description
      Previous value: -"Max URLs"New value: +"Maximum URLs to return (default 20, max 100)"
    • changedInput schema / properties / maxItems / maximum
      Previous value: -50000New value: +100
    • changedInput schema / properties / url / description
      Previous value: -"Domain or sitemap URL, e.g. example.com or https://example.com/sitemap.xml"New value: +"Domain or direct sitemap URL (.xml, .xml.gz, .txt), e.g. sitemaps.org or https://example.com/sitemap.xml. For non-sitemap page URLs, only the domain is used."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Well beyond the readOnly/openWorld/idempotent annotations, the description discloses live-fetch latency (~1-5 s), caching behavior (cached and cacheAgeSeconds always returned at top level), truncation semantics, and the exact error contract (400/429/502 with error, message, code). It also states the rate limits and auth options (5 calls/day per IP, X-API-Key, $0.005/call via x402), which are operationally decisive for an agent.

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?

Information is front-loaded: what it returns first, then filtering, then response shape, then errors, then cost. It is dense and slightly run-on near the end where pricing URLs are packed into the final sentence, but nearly every clause carries operational value rather than filler.

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?

There is no output schema, yet the description names the returned per-URL fields (lastmod, changefreq, priority) and the top-level summary fields (summary.urls, sitemapsRead, foundVia, errors, truncated, cached, cacheAgeSeconds). Combined with the error contract and latency expectation, an agent has everything needed to call and interpret results without further documentation.

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

Parameters4/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 description earns an extra point by specifying edge-case semantics the schema omits, notably that an unmatched contains filter yields count 0 and an empty items array, and that maxItems has no pagination counterpart (a single request caps at 100). It otherwise restates the schema's default 20/max 100 and the domain-only rule for non-sitemap URLs.

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?

The description opens with a specific verb+resource: discover a site's sitemaps (listing the exact locations checked: robots.txt Sitemap: lines, /sitemap.xml, indexes, .gz, .txt) and return page URLs with lastmod/changefreq/priority. It also clarifies the ambiguous case of a non-sitemap page URL by stating only the domain is used, so an agent knows exactly what the tool does with either input shape.

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?

Usage conditions are clear: use maxItems up to 100 with no pagination, use contains for case-insensitive substring filtering, and note that non-sitemap URLs are reduced to their domain. Pricing/auth paths (free tier, X-API-Key, x402) further tell the agent what it needs to call it. No alternative sibling tool is named, which is acceptable here since none of the listed siblings overlap, but that keeps it from a 5.

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