Skip to main content
Glama

url.map

Extract all URLs from an XML sitemap or HTML page in one request. Returns resolved, deduplicated links with optional same-host filtering.

Instructions

Discover the URLs a page or sitemap points at in a single fetch — entries from an XML sitemap/sitemap-index, or links from an HTML page (auto-detected). Resolved-absolute, deduped, http(s)-only. Stateless, no JS, NOT a recursive crawler — re-call on a child sitemap/page to go deeper. limit 1-2000 (default 200); sameHostOnly keeps same-host links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
limitNo
sameHostOnlyNo
Behavior4/5

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

The description discloses key behaviors: auto-detection between sitemap and HTML, resolved-absolute URLs, deduplication, http(s)-only filtering, no JavaScript execution, and non-recursive nature. Minor omission: no mention of HTTP request behavior or potential rate limits, but overall very transparent without annotations.

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?

The description is concise (two sentences) and front-loaded with the core purpose. Every sentence adds value: first explains the function, second adds behavioral constraints and parameter hints. No redundancy.

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 the tool's simplicity (3 parameters, no output schema) and the lack of annotations, the description completely covers what the agent needs to know: input type, output characteristics, limitations, and parameter roles. The output (list of URLs) is implied by the purpose.

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?

The description adds meaning beyond the schema by explaining 'limit' (1-2000, default 200) and 'sameHostOnly' (filters to same-host links). The required 'url' parameter is implicitly described as a page or sitemap URL. Schema coverage from description is high, adding context even though schema has none.

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 clearly states the tool discovers URLs from pages or sitemaps, specifies both input types (XML sitemap entries and HTML links), and mentions processed URLs are resolved-absolute, deduped, and http(s)-only. This distinguishes it from sibling tools like url.clean and url.render.

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?

The description explicitly says it is stateless, non-recursive, and advises re-calling on child sitemaps/pages for deeper crawling. It also provides parameter guidance (limit range, sameHostOnly function), leaving no ambiguity about when and how to use it.

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/2s-io/sdk'

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