Skip to main content
Glama

Check XML sitemaps

check_sitemap
Read-onlyIdempotent

Discover, parse, and validate XML sitemaps to report URL counts, duplicates, indexing blocks, and broken or non-canonical entries so you can fix crawl and indexability issues.

Instructions

Find, parse and sanity-check XML sitemaps.

Discovers sitemaps from robots.txt Sitemap: lines, /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml; follows sitemap indexes; reads gzip sitemaps with size limits. Reports URL counts, lastmod statistics, duplicates, URLs on other hosts, http URLs on https sites, URLs blocked for Googlebot by robots.txt, and fetches an evenly spaced sample of URLs to flag non-200, noindex and canonicalised entries.

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

Input Schema

NameRequiredDescriptionDefault
urlYesA site URL (sitemaps are discovered) or a sitemap URL.
sample_sizeNoHow many sitemap URLs to fetch for status checks (0-100).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent, so the description's added value is real: it discloses that indexes are followed, gzip files are read under size limits, and that only an evenly spaced sample of URLs is fetched rather than the whole set. It also enumerates the specific faults checked (non-200, noindex, canonicalised, cross-host, http-on-https, robots-blocked), which an agent could not infer from structured fields.

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-loaded with a one-line summary followed by two dense but well-structured sentences; the semicolon-delimited discovery list and the comma-delimited report list are easy to scan. The second sentence runs long as a single enumerated clause, which costs a little readability but no clause is filler.

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 two-parameter, read-only network tool with an output schema and full annotation coverage, everything an agent needs is present: how targets are resolved, what limits apply, what subset is fetched, and what categories of problems are reported. Return-value formatting is legitimately left to 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 both parameters already carry descriptions covering the site-URL-vs-sitemap-URL flexibility and the sample_size default and range. The description reinforces that sampling is evenly spaced, but adds no format or syntax detail beyond the schema, 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 opening sentence gives a concrete verb triple (find, parse, sanity-check) tied to a specific resource (XML sitemaps), and the body names exactly how discovery happens (robots.txt Sitemap: lines, /sitemap.xml, sitemap_index.xml, /wp-sitemap.xml). That clearly separates it from an API-backed sibling like gsc_sitemaps, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied: reach for this when you want sitemap health rather than Search Console data, because the description spells out what gets audited. There is no explicit when-not-to-use clause, no steering toward check_robots or gsc_sitemaps, and no mention of prerequisites such as the target being publicly reachable.

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