Skip to main content
Glama

map_site

Discover a domain's sitemap or traverse internal anchor links to return a canonical URL tree, helping agents navigate sites before scraping.

Instructions

Discovers domain sitemap or traverses internal anchor links to return a canonical URL tree (0.002 USDC).

Usage Guidelines:

  • Use this tool to map an entire website or documentation site before scraping.

  • Firecrawl /map equivalent for autonomous web navigation agents.

  • Returns: Target URL, domain, total URL count, list of discovered URLs, and sitemap detection status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesTarget website domain or URL to map (e.g., 'https://docs.github.com' or 'example.com').
max_linksNoMaximum internal URLs to discover (default: 50, max: 100).
auth_token_or_txNoOptional x402 auth token or tx hash.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.6

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries full behavioral burden. It discloses a cost (0.002 USDC) and the return shape, which is useful, but says nothing about rate limits, auth requirements (the auth_token_or_tx param is silently optional), failure behavior for unreachable sites, or the distinction between sitemap discovery and anchor traversal modes.

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?

Front-loads the verb and resource in the first sentence, then uses a labeled 'Usage Guidelines' block and a 'Returns' line. Slightly redundant ('Firecrawl /map equivalent' is a marketing reference rather than operational guidance), but overall tight.

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?

An output schema exists and the description still summarizes the return fields (target URL, domain, URL count, URL list, sitemap status), which is helpful but not strictly required. The main gap is that auth/payment semantics for the optional auth_token_or_tx parameter are left unexplained despite an advertised per-call cost.

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 description coverage is 100%, so all three parameters (url, max_links, auth_token_or_tx) are already documented in the schema with examples, defaults, and bounds. The description adds no parameter-level detail beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource ('Discovers domain sitemap or traverses internal anchor links to return a canonical URL tree'), which is clear and unambiguous. It does not, however, differentiate itself from named siblings like search_web_quick or clean_web_content, which an agent might reasonably confuse with site traversal.

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 says to use it to map an entire website or documentation site before scraping, which gives a clear pre-scrape context. It stops short of naming an alternative tool or stating when NOT to use it, so it's clear context without exclusions.

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