Skip to main content
Glama
DatLab MCP server

DatLab MCP server

Official
by datlabhq

Sitemap extractor and change monitor

sitemap_change_monitor

Track sitemap changes by listing every URL or comparing runs to reveal added, removed, and lastmod-changed URLs.

Instructions

List every URL in a site's sitemaps, or see which URLs were added, removed or had their lastmod changed since the last run. Use it when the site has a sitemap or RSS feed. Do not use it when you need page text (use web_page_to_markdown). Output fields: url, lastmod, changeType, previousLastmod, site, sitemapUrl, recordType. Cost: first 500 URL results and 10 page checks each UTC month are free, then $0.0003 per URL result and $0.002 per page check, plus $0.00005 per run start. Set maxUrls to cap spend.

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

Input Schema

NameRequiredDescriptionDefault
maxUrlsNoCap on URLs returned per site. Set this to control spend.
stateKeyNoName for the change-monitor state. Use one key per site you watch.
startUrlsNoSite origins or home pages. The actor finds sitemaps from robots.txt and common paths.
onlyChangesNoWhen tracking changes, return only the diffs.
sitemapUrlsNoDirect sitemap or RSS/Atom URLs, if you already have them.
trackChangesNoCompare against the last run and mark added, removed, or lastmodChanged URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the metered pricing tiers, the existence of persisted run state implied by 'since the last run', and the exact output fields. It stops short of saying what happens to stored state on a re-run (overwrite vs. append), whether a stateKey can be reset, or any auth/error behavior, which leaves a real gap for a stateful mutation-ish tool.

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?

Purpose and the primary alternative are front-loaded in the first two sentences, and the field list is compact. The pricing sentence is dense and slightly repetitive with the maxUrls advice, but the cost information is genuinely decision-relevant, so it mostly earns its place.

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?

There is no output schema, so listing output fields (url, lastmod, changeType, previousLastmod, site, sitemapUrl, recordType) is valuable and covers return values. For a 6-parameter, zero-required tool with persistent state, the remaining gap is what happens when neither startUrls nor sitemapUrls is supplied and how state lifecycle works across runs.

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 six parameters are already documented in structured data; the description's only parameter-level guidance ('Set maxUrls to cap spend') largely restates the schema's own note. It does implicitly link trackChanges/onlyChanges/stateKey to the change-monitor mode, but that relationship is left for the agent to infer rather than spelled out.

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 opens with a specific verb and resource ('List every URL in a site's sitemaps') and immediately names the second mode ('see which URLs were added, removed or had their lastmod changed since the last run'). It also carves out the boundary against web_page_to_markdown, so an agent can distinguish it from the crawling/markdown siblings without opening any schema.

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

Usage Guidelines5/5

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

It states an explicit inclusion condition ('Use it when the site has a sitemap or RSS feed'), an explicit exclusion with the named alternative ('Do not use it when you need page text (use web_page_to_markdown)'), and a practical operating instruction ('Set maxUrls to cap spend'). That is the full when/when-not/alternative triad.

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