Skip to main content
Glama

sitemap_parse

Fetch and parse XML sitemaps to structured JSON, enabling page enumeration, update detection, and crawl queue building without raw XML processing.

Instructions

Fetch and parse an XML sitemap (urlset or sitemapindex). Returns structured JSON: for urlsets — array of URLs with loc, lastmod, changefreq, priority, plus image/news sitemap extensions; for sitemapindex — list of child sitemap URLs. Returns an error if the URL is unreachable or the response is not valid XML sitemap format. Has no side effects. Use to enumerate all pages of a site, find recently updated content, or build a crawl queue — without loading raw XML into context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesSitemap URL (http:// or https://). Accepts sitemap.xml, sitemap_index.xml, or any XML sitemap.
maxUrlsNoMax URLs to return from a urlset (default 100, max 1000). Has no effect on sitemapindex (all child sitemaps are always returned).
Behavior5/5

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

Discloses no side effects, error conditions (unreachable URL, invalid XML), and behavior for both sitemap types. Explains maxUrls limit and its effect. With no annotations, the description fully covers behavioral traits.

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 clear sentences: main function, error handling, use cases. Front-loaded with primary purpose. No unnecessary words. Each sentence serves a distinct purpose.

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?

Given two parameters, no output schema, and no annotations, the description is quite complete. It explains input, return format, errors, and use cases. Minor omission: exact JSON structure not fully described, but the mention of fields suffices.

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 baseline is 3. The description adds extra value by specifying default (100) and max (1000) for maxUrls, and clarifying it has no effect on sitemapindex. This goes beyond schema details.

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?

Clearly states it fetches and parses XML sitemaps, returning structured JSON for urlset or sitemapindex. Distinguishes itself from generic fetch tools by specifying its exact purpose: enumerating pages, finding updated content, building crawl queues.

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?

Explicitly lists use cases (enumerate pages, find updated content, build crawl queue). Implicitly suggests not to use for raw HTML fetching. However, does not explicitly mention when not to use or compare to siblings, though the context makes it clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/icosaedro-git/toolsnap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server