Skip to main content
Glama

Map a site

pagesift_map
Read-onlyIdempotent

List a website's URLs from sitemaps, robots.txt, and homepage links without fetching each page, with search ranking and limits for targeted crawling.

Instructions

List a website's URLs from its sitemaps, robots.txt and homepage links without fetching each page. sitemap include (default) uses both sitemaps and page links, skip ignores sitemaps, only uses sitemaps without reading the homepage. If no sitemap is found it falls back to homepage links; limit truncates after search ranking. Use pagesift_scrape for one page and pagesift_crawl to fetch many pages.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe site to map.
limitNoMaximum URLs to return after ranking. Defaults to 5000.
searchNoOnly rank URLs related to this term first; all other URLs stay in the list after them.
sitemapNoinclude (default): use sitemaps plus homepage links; skip: ignore sitemaps; only: use sitemaps and skip the homepage.
timeoutNoTimeout in milliseconds.
includeSubdomainsNoInclude other subdomains of the same site. Defaults to true.
ignoreQueryParametersNoTreat URLs that differ only by query string as one. Defaults to true.

Output Schema

NameRequiredDescriptionDefault
linksYesURLs found in sitemaps, robots.txt and the homepage, after filtering and the limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.2.2
    • addedInput schema / properties / ignoreQueryParameters / description
      Added value: +"Treat URLs that differ only by query string as one. Defaults to true."
    • addedInput schema / properties / includeSubdomains / description
      Added value: +"Include other subdomains of the same site. Defaults to true."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum URLs to return after ranking. Defaults to 5000."
    • changedInput schema / properties / search / description
      Previous value: -"Only return URLs related to this term."New value: +"Only rank URLs related to this term first; all other URLs stay in the list after them."
    • addedInput schema / properties / sitemap / description
      Added value: +"include (default): use sitemaps plus homepage links; skip: ignore sitemaps; only: use sitemaps and skip the homepage."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "links": {
      +      "description": "URLs found in sitemaps, robots.txt and the homepage, after filtering and the limit.",
      +      "items": {
      +        "properties": {
      +          "description": {
      +            "description": "Link description when known.",
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Link title when known.",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Absolute URL on the site.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "links"
      +  ],
      +  "type": "object"
      +}
  2. Changed4 schema fields changedv0.81.6
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "Timeout in milliseconds.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. First observedv0.81.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds real behavioral context beyond them: no per-page fetching, the sitemap-absent fallback to homepage links, and that 'limit' truncates only after search ranking is applied. It stops short of noting cost/latency characteristics of a large map, which keeps it at 4 rather than 5.

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 core capability is front-loaded in the first sentence, and the routing sentence closes it usefully. The middle mode description is dense and slightly redundant with the schema's sitemap enum, which costs a point, but nothing is padding.

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?

With an output schema present and rich annotations, the description need not explain return values, and it does cover the key non-obvious behavior: fallback when no sitemap is found and ranking-then-truncation of results. The subdomain and query-parameter defaults are left entirely to the schema, a minor gap for a discovery tool where those materially change the URL set.

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 every parameter including the sitemap enum is already documented. The description restates the sitemap modes and the post-ranking truncation of 'limit' rather than adding syntax, interaction effects, or defaults not already in the schema. Baseline 3 is appropriate when the schema carries the parameter burden.

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 and resource: 'List a website's URLs from its sitemaps, robots.txt and homepage links without fetching each page.' That scope statement (URL discovery only, no page fetching) plus the explicit contrast with pagesift_scrape and pagesift_crawl makes it distinguishable from every sibling without opening a schema.

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 names both alternatives and the condition that selects each: 'Use pagesift_scrape for one page and pagesift_crawl to fetch many pages.' It also gives the selection logic among the tool's own modes (include/skip/only) and the fallback when no sitemap exists, so an agent knows when to pick this tool and how to configure it.

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