Skip to main content
Glama

Construir sitemap XML

sitemap-build
Read-onlyIdempotent

Genera un sitemap XML (sitemaps.org) de hasta 50.000 URLs con lastmod, changefreq y prioridad. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: extraer y clasificar los enlaces de un documento HTML (html-links-extract). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Builds a sitemaps.org XML sitemap from up to 50,000 URLs with optional lastmod, changefreq and priority, XML-escaping each value and rejecting non-http(s) URLs. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: extracting and classifying the links of an HTML document (html-links-extract). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
urlsYesURLs or entries (array of string/object; required; at least 1 items).

Output Schema

NameRequiredDescriptionDefault
xmlNo
countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / urls / examples
      Added value: +[
      +  [
      +    "http://x.co/a"
      +  ]
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Builds a sitemaps.org XML sitemap from up to 50,000 URLs with optional lastmod, changefreq and priority, XML-escaping each value and rejecting non-http(s) URLs. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. Not for: extracting and classifying the links of an HTML document (html-links-extract). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint=false, idempotentHint and destructiveHint=false, so the description's 'side effects: none' line is redundant. It earns credit for the facts annotations do not carry: determinism, XML escaping of values, rejection of non-http(s) URLs, and hard limits of 64 KB input, 1 s per call and 1 MB result.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is front-loaded and tight, but the generic 'When:' clause consumes a large share of the text while adding no tool-specific value, and the whole block is duplicated bilingually and again inside inputSchema.description.

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?

For a one-parameter builder with an output schema and full annotation coverage, the definition supplies what an agent still needs: size/time/output limits, validation rules and determinism. Only the boilerplate 'When' clause and the unmentioned ordering/error behavior leave small gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter is fully documented with an item-level description and example, which sets a baseline of 3. The description adds real meaning beyond the schema by stating that URLs are validated (non-http(s) rejected) and that values are XML-escaped, which the schema does not mention.

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?

States a specific verb and resource with scope: builds a sitemaps.org XML sitemap from up to 50,000 URLs with optional lastmod, changefreq and priority. It also names a concrete behavioral rule (XML-escaping each value, rejecting non-http(s) URLs) and explicitly disclaims a sibling (html-links-extract), so an agent can identify it without opening the schema.

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?

The 'Not for' clause is the only genuinely tool-specific routing signal and it points to html-links-extract. The 'When:' clause is generic family boilerplate listing HTTP headers, tokens, IP ranges, HTML/Markdown documents and agent-readiness files, none of which this tool handles, so it does not actually tell an agent when to pick sitemap-build over url-build, xml-parse or robots-txt-check.

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.

Resources