Skip to main content
Glama

Import sitemap

import_sitemap
DestructiveIdempotent

Read the site's sitemap into the workspace inventory of pages it already published, so add_topics can withhold a phrase an existing page covers. Free: no DataForSEO, and it never downloads a page: it reads sitemap files only, so every page title is inferred from its URL slug (titleSource slug), never read. Without sitemapUrl it discovers one from profile.sitemapUrl, then the Sitemap lines of robots.txt, then /sitemap.xml and /sitemap_index.xml. Needs profile.siteUrl; a sitemapUrl on another host is refused (off-host). Idempotent: re-running updates the inventory, and pages that left the sitemap drop out of it. Bounded at 20 sitemaps, 5,000 URLs and about 25 seconds; past that status is partial and sitemapsSkipped says why. contentPrefix is the path the blog lives under (detected, e.g. /blog); pass it only when the detection is wrong. If it fails, carry on: nothing else depends on it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sitemapUrlNo
workspaceIdNoThe workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.
contentPrefixNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "The workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes far beyond the annotations: no DataForSEO cost, never downloads pages, titles inferred from slugs (titleSource slug), off-host sitemapUrl refused, idempotent re-run semantics including pages dropping out, and explicit bounds (20 sitemaps, 5,000 URLs, ~25s) with partial status and sitemapsSkipped. Nothing here contradicts readOnly=false/destructive=true/idempotent=true; the removal-on-reimport note actually substantiates destructiveHint.

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, routing, and the cross-tool rationale are front-loaded, and almost every clause carries new information (cost, discovery order, bounds, failure tolerance). It is dense rather than bloated, though the single long paragraph could be broken up for scanning.

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?

With no output schema, the description still discloses the outcome shape (inventory updated, partial status, sitemapsSkipped) and the preconditions, limits, and dependency-free failure mode. An agent has everything needed to decide whether and how to call it.

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

Parameters5/5

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

Schema coverage is only 33% and the description compensates fully: it explains sitemapUrl's optionality plus the four-step discovery fallback, defines contentPrefix as the blog path with a detection default and an when-to-pass rule, and reinforces workspaceId scoping. These are semantics no structured field supplies.

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 ('Read the site's sitemap into the workspace inventory of pages it already published') and ties it to a downstream sibling ('so add_topics can withhold a phrase an existing page covers'). An agent can distinguish this from add_topics or research_topic without opening a 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?

Explicitly tells the agent when discovery applies ('Without sitemapUrl it discovers...'), when to override contentPrefix ('pass it only when the detection is wrong'), a hard precondition ('Needs profile.siteUrl'), and whether failure matters ('carry on: nothing else depends on it'). This is unusually complete routing guidance.

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