Skip to main content
Glama

Agent Data Tools: Web, documents and search

Sitemap parser, URL extractor: documentation URLs from a bounded XML sitemap

sitemap
Read-only

Sitemap parser: reads one public XML sitemap or sitemap index as structured URLs and source-reported dates. Supports gzip, substring filtering and pagination. Large sitemaps are read from the start (512 KiB, 1000 entries at most, with a warning). Does not crawl pages or follow child sitemaps. Invalid XML and execution errors are not charged; a valid empty match is charged. Use to find which pages of a docs site to read before calling /extract. Example: url=https://www.sitemaps.org/sitemap.xml. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute public HTTP(S) XML sitemap URL; child sitemaps are not fetched automatically
offsetNoOffset into distinct reported matching locations (0-1000, default 0); use nextOffset to continue
maxUrlsNoReported matching locations examined in one page (1-100, default 25); invalid/nonpublic locations may reduce returned entries
containsNoOptional case-insensitive URL substring, at most 200 characters

Output Schema

NameRequiredDescriptionDefault
urlYes
kindYes
textYes
formatYes
offsetYes
entriesYes
hasMoreYes
containsYes
finalUrlYes
warningsYes
fetchedAtYes
hashFormatYes
nextOffsetYes
sourceHashYes
contentHashYes
reportedEntriesYes
rejectedLocationsInPageYes
uniqueReportedLocationsYes
matchingReportedLocationsYesDistinct reported locations matching contains, before public-URL validation of the selected page.
missingOrInvalidLocationsYes
duplicateReportedLocationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / maxUrls / maximum
      Previous value: -9007199254740991New value: +100
    • changedInput schema / properties / maxUrls / minimum
      Previous value: --9007199254740991New value: +1
    • changedInput schema / properties / offset / maximum
      Previous value: -9007199254740991New value: +1000
    • changedInput schema / properties / offset / minimum
      Previous value: --9007199254740991New value: +0
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: gzip support, the 512 KiB and 1000-entry limits, warning behavior, and no child sitemap following. It also explains charging behavior for invalid XML, execution errors, valid empty matches, and repeated calls, which is valuable context for an open-world, charged read operation.

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?

The description is front-loaded and mostly dense, covering purpose, limits, usage, pricing, and constraints. It has some redundancy: 'failed calls free' repeats the earlier no-charge statement, and 'reads or computes only and changes nothing' restates the readOnly annotation.

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?

For a read-only XML sitemap parser with a full input schema and an output schema, the description is complete enough. It explains scope, limits, pagination, filtering, charging, and the intended workflow before calling /extract without needing to describe return fields already covered by the output schema.

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 schema already documents url, offset, maxUrls, and contains in detail. The description mentions substring filtering and pagination but does not add parameter-level meaning beyond the schema, so the baseline of 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?

The description states a specific verb and resource: it reads one public XML sitemap or sitemap index as structured URLs and dates. It also distinguishes the scope from crawling by saying it does not crawl pages or follow child sitemaps, so the agent can tell it apart from extract and other URL tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit usage guidance: use it to find which pages of a docs site to read before calling /extract. It also states clear exclusions, including no page crawling and no automatic child sitemap fetching, and explains pagination and substring filtering.

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