site_map

Pack: web-fetch · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/site_map for the schema, then POST the same URL with its arguments for the data.

List the URLs a website publishes: read its robots.txt Sitemap lines (or /sitemap.xml when it names none), follow sitemap index files, inflate gzip sitemaps, and add the links on the seed page.

Parameters

NameTypeRequiredDescription
urlstringyesThe site or section to map, e.g. “https://www.ferc.gov” or “ferc.gov”. The seed page is read for links, and its host is the site mapped.
limitnumbernoThe most URLs to return. Default 200, at most 1000.
include_subdomainsbooleannotrue to include other subdomains of the same site (docs.example.com for example.com). Default false: the seed host only (www and the bare domain count as one).
path_prefixstringnoKeep only URLs whose path starts with this, e.g. “/news”. Default: the whole site.
sitemap_urlstringnoRead this sitemap or sitemap index file instead of looking for one, e.g. a file listed in a previous answer’s sitemaps_unread. robots.txt is not read.

Example call

Arguments

{
  "url": "https://www.ferc.gov",
  "limit": 50
}

curl

curl -X POST https://gateway.pipeworx.io/web-fetch/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"site_map","arguments":{"url":"https://www.ferc.gov","limit":50}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('site_map', {
  "url": "https://www.ferc.gov",
  "limit": 50
});

More examples

{
  "url": "https://www.python.org",
  "path_prefix": "/downloads",
  "limit": 100
}

Response shape

Always returns: seed_url

FieldTypeDescription
foundbooleanTrue when at least one URL was found. False with reason no_urls_discovered when the site publishes none in scope.
reasonstringPresent when found is false: no_urls_discovered.
seed_urlstringThe URL you asked about.
sitestringThe host that was mapped (the seed after any redirect).
include_subdomainsbooleanWhether other subdomains of the site were in scope.
path_prefixstring | nullThe path prefix URLs were limited to, or null.
limitnumberThe most URLs returned.
urls_returnednumberLength of urls.
urls_foundnumberURLs found in the files and page read, before the limit cut the list.
cut_by_limitbooleanTrue when the list was cut: more URLs were found than limit, or sitemap files were left unread.
cut_notestringWhy the list was cut and how to read the rest.
countsobject
urls_filtered_outnumberURLs seen but left out for being another site, outside path_prefix, or an asset (image, style, script).
urlsarrayThe URLs, sitemap entries first in file order, then the seed page links.
seed_pageobjectThe seed page read: url, status, links_added, or the refusal that stopped it.
robots_txtobject | nullThe robots.txt read: url, status, sitemap_lines (Sitemap: lines it named), or its refusal. Null when sitemap_url was given.
sitemapsarrayEvery sitemap file tried.
sitemaps_unreadarraySitemap files known but not read this call (read at most 12 a call, or the time ran out). Pass one as sitemap_url.
fetchesobjectWhat this call drew on the site budget: origin reads count against the per-site and per-caller daily budgets, cache reads and guard refusals do not.
time_budget_msnumberThe time one call may spend reading before it returns what it has.
warningsarrayAnything that limits the answer.
fetched_atstringISO time of the call.
errorstringRefusal class when the call could not be answered: blocked_url, upstream_refused, upstream_down, upstream_status, budget_exhausted, invalid_argument.
messagestringWhy, in words, for an error.
rulestringFor blocked_url: the rule that refused the address.
hintstringWhat to do next, on a refusal or an empty answer.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean",
      "description": "True when at least one URL was found. False with reason no_urls_discovered when the site publishes none in scope."
    },
    "reason": {
      "type": "string",
      "description": "Present when found is false: no_urls_discovered."
    },
    "seed_url": {
      "type": "string",
      "description": "The URL you asked about."
    },
    "site": {
      "type": "string",
      "description": "The host that was mapped (the seed after any redirect)."
    },
    "include_subdomains": {
      "type": "boolean",
      "description": "Whether other subdomains of the site were in scope."
    },
    "path_prefix": {
      "type": [
        "string",
        "null"
      ],
      "description": "The path prefix URLs were limited to, or null."
    },
    "limit": {
      "type": "number",
      "description": "The most URLs returned."
    },
    "urls_returned": {
      "type": "number",
      "description": "Length of urls."
    },
    "urls_found": {
      "type": "number",
      "description": "URLs found in the files and page read, before the limit cut the list."
    },
    "cut_by_limit": {
      "type": "boolean",
      "description": "True when the list was cut: more URLs were found than limit, or sitemap files were left unread."
    },
    "cut_note": {
      "type": "string",
      "description": "Why the list was cut and how to read the rest."
    },
    "counts": {
      "type": "object",
      "properties": {
        "from_sitemap": {
          "type": "number",
          "description": "URLs found in sitemaps."
        },
        "from_page": {
          "type": "number",
          "description": "URLs found only on the seed page."
        }
      }
    },
    "urls_filtered_out": {
      "type": "number",
      "description": "URLs seen but left out for being another site, outside path_prefix, or an asset (image, style, script)."
    },
    "urls": {
      "type": "array",
      "description": "The URLs, sitemap entries first in file order, then the seed page links.",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Absolute URL, fragment removed."
          },
          "lastmod": {
            "type": [
              "string",
              "null"
            ],
            "description": "The last-modified date the sitemap published for it, as written; null when none (always null for page links)."
          },
          "discovered_from": {
            "type": "string",
            "enum": [
              "sitemap",
              "page"
            ],
            "description": "Where it was found."
          },
          "found_in": {
            "type": "string",
            "description": "The sitemap file or page it was found in."
          }
        },
        "required": [
          "url",
          "discovered_from"
        ]
      }
    },
    "seed_page": {
      "type": "object",
      "description": "The seed page read: url, status, links_added, or the refusal that stopped it."
    },
    "robots_txt": {
      "type": [
        "object",
        "null"
      ],
      "description": "The robots.txt read: url, status, sitemap_lines (Sitemap: lines it named), or its refusal. Null when sitemap_url was given."
    },
    "sitemaps": {
      "type": "array",
      "description": "Every sitemap file tried.",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The sitemap file."
          },
          "kind": {
            "type": [
              "string",
              "null"
            ],
            "description": "index, urlset, text or not_a_sitemap; null when it could not be read."
          },
          "status": {
            "type": [
              "number",
              "null"
            ],
            "description": "HTTP status."
          },
          "urls": {
            "type": "number",
            "description": "URLs listed in the file."
          },
          "children": {
            "type": "number",
            "description": "For an index: how many sitemap files it lists."
          },
          "gzip": {
            "type": "boolean",
            "description": "True when the file was gzip and was inflated."
          },
          "truncated": {
            "type": "boolean",
            "description": "True when only the first part of a large file was read."
          },
          "error": {
            "type": "string",
            "description": "Refusal class when it could not be read (a 404 on a conventional path is normal)."
          },
          "reason": {
            "type": "string",
            "description": "Detail of the refusal."
          },
          "message": {
            "type": "string",
            "description": "Refusal text."
          },
          "note": {
            "type": "string",
            "description": "Anything that limits what the file contributed."
          }
        }
      }
    },
    "sitemaps_unread": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Sitemap files known but not read this call (read at most 12 a call, or the time ran out). Pass one as sitemap_url."
    },
    "fetches": {
      "type": "object",
      "description": "What this call drew on the site budget: origin reads count against the per-site and per-caller daily budgets, cache reads and guard refusals do not.",
      "properties": {
        "origin": {
          "type": "number",
          "description": "Reads that went to the site."
        },
        "cache": {
          "type": "number",
          "description": "Reads answered from the short-lived store (no request to the site)."
        },
        "refused_before_fetch": {
          "type": "number",
          "description": "Reads refused before any request (blocked address, spent budget)."
        }
      }
    },
    "time_budget_ms": {
      "type": "number",
      "description": "The time one call may spend reading before it returns what it has."
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Anything that limits the answer."
    },
    "fetched_at": {
      "type": "string",
      "description": "ISO time of the call."
    },
    "error": {
      "type": "string",
      "description": "Refusal class when the call could not be answered: blocked_url, upstream_refused, upstream_down, upstream_status, budget_exhausted, invalid_argument."
    },
    "message": {
      "type": "string",
      "description": "Why, in words, for an error."
    },
    "rule": {
      "type": "string",
      "description": "For blocked_url: the rule that refused the address."
    },
    "hint": {
      "type": "string",
      "description": "What to do next, on a refusal or an empty answer."
    }
  },
  "required": [
    "seed_url"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the web-fetch pack
{
  "mcpServers": {
    "web-fetch": {
      "url": "https://gateway.pipeworx.io/web-fetch/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build December 4, 2026