Skip to main content
Glama

analyze_sitemap

Read-onlyIdempotent

Fetch an XML sitemap (urlset or sitemap index) to report URL count, lastmod distribution, issues, and optionally verify sample URLs with HTTP status checks.

Instructions

Fetch and analyze an XML sitemap (urlset or sitemap index). Returns URL count, lastmod distribution, and issues. Optionally spot-checks URLs for HTTP status codes.

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

Input Schema

NameRequiredDescriptionDefault
urlYesFull URL of the XML sitemap to analyze.
maxUrlsNoMaximum number of URLs to process from the sitemap. Defaults to 1000.
checkUrlsNoWhen true, issue HEAD requests to a sample of sitemap URLs to verify they return 200.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the safety profile is covered. The description still earns credit by disclosing the return payload (URL count, lastmod distribution, issues) and by flagging that checkUrls triggers outbound HEAD requests — behavior the annotations alone only hint at via openWorldHint.

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, front-loaded with the core action, then outputs, then the optional expensive mode. No filler or redundant restatement of the schema.

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 no output schema, the description usefully enumerates what comes back, and it explains the costly optional mode. It is slightly thin on what happens when a sitemap exceeds maxUrls (truncation vs error) and on what kinds of 'issues' are reported.

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 all three parameters are already documented, and the description's 'optionally spot-checks URLs for HTTP status codes' mostly restates checkUrls. It adds no detail on how large a sample is checked or whether maxUrls bounds the check phase.

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?

States a specific verb and resource ('Fetch and analyze an XML sitemap') and even narrows scope to urlset vs sitemap index formats, so the agent knows what input shape is expected. It does not differentiate itself from the sibling gsc_sitemaps, which also concerns sitemaps, so the sibling boundary is left for the agent to infer.

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 purpose implies when to use it — auditing a known sitemap URL — but there is no explicit when-to-use or when-not-to-use guidance and no named alternative for related tasks such as gsc_sitemaps or crawl_site. The optional HTTP-check behavior is described, but not framed as a situational choice.

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