Skip to main content
Glama

Validate or generate a sitemap

validate_sitemap
Read-onlyIdempotent

Validate sitemap XML or a public sitemap URL, including a sitemap index and a sample of HTTP statuses. Or generate a urlset from a list of URLs. Private addresses are refused and responses are size-capped.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_sitemap"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic sitemap URL. Private addresses are refused.
xmlNoSitemap XML. Use this or url.
urlsNoURLs to place in a generated sitemap. When set, url and xml are ignored.
probeNoRequest a sample of locations and report HTTP status.

Output Schema

NameRequiredDescriptionDefault
xmlYes
kindYes
urlsYes
issuesYes
probesYes
sourceYes
sitemapsYes
urlCountYes
sitemapCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the safety profile is covered. The description adds above that: private addresses are refused (SSRF protection for a network-facing tool), responses are size-capped, sitemap indexes are traversed, and probing samples HTTP statuses from locations, all of which genuinely change expectations about cost and failure.

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?

Three short sentences: the validate mode and its scope come first, the generate mode second, and cross-cutting constraints last. No filler or repetition.

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, so return values need not be explained, and the description covers both operational modes plus network and size constraints. It could go slightly further by noting that all inputs are optional and that supplying none is an error, but nothing essential about invoking the tool is missing.

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 four parameters are already documented, including the mutual exclusivity rule where urls causes url and xml to be ignored. The description only restates the generate vs validate split and the probing sample behavior, adding little beyond the schema baseline.

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 uses specific verbs and resources: validate sitemap XML or a public sitemap URL, including a sitemap index, and generate a urlset from a list of URLs. The sitemap resource is specific enough to distinguish this tool from siblings such as validate_json_schema and check_robots_txt without additional qualification.

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?

This is clear which input selects which mode: url or xml validates, while urls generates. However, it never explicitly states when to prefer this tool over adjacent siblings like check_robots_txt or validate_json_schema, and it does not warn that exactly one input should be supplied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.