Skip to main content
Glama

Add Sitemap file

add-sitemap

Register a sitemap URL in Yandex Webmaster for a verified host, returning its sitemap ID and indicating whether it was already present.

Instructions

Add a Sitemap file to Yandex Webmaster (user-added sitemaps). Returns sitemap_id, url and already_present: false for a new file. A 409 SITEMAP_ALREADY_ADDED is a successful result with already_present: true and the existing sitemap_id (null if unavailable). The host must be verified, or the call fails with 404 HOST_NOT_VERIFIED. Use when the user asks to register a sitemap URL on an already verified host. Do not use it to list files; call get-user-sitemaps. Do not use it to delete the host; call delete-host, which is irreversible and requires confirm.

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": {
      "host_id": "<host_id>",
      "url": "<url>"
    },
    "name": "add-sitemap"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull URL of the sitemap file (e.g. "https://example.com/sitemap.xml")
host_idYesHost ID (URL-encoded, e.g. "https:example.com:443")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by defining the return contract (sitemap_id, url, already_present), mapping a 409 SITEMAP_ALREADY_ADDED to success with the existing id (possibly null), and stating the 404 HOST_NOT_VERIFIED prerequisite. The annotations only give readOnly=false/destructive=false/openWorld=true, so this detail is genuinely additive.

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?

Purpose and return contract are front-loaded, followed by error semantics and then usage/exclusion guidance. Every sentence carries distinct information; nothing repeats the schema or annotations.

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?

For a two-parameter mutation tool with no output schema, the description supplies the return shape, the non-obvious success-on-409 behavior, the verification precondition, and sibling routing. Nothing an agent needs to call it correctly is missing.

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 both parameters are already described there, so the baseline applies. The description nevertheless adds real meaning by stating the host must be verified (a constraint not encoded in the host_id field) and by tying the url to the returned sitemap record.

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?

Specific verb and resource ('Add a Sitemap file to Yandex Webmaster') plus the user-added scope. It also names the sibling it is not ('Do not use it to list files; call get-user-sitemaps'), so an agent can route correctly without opening either 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?

Explicit when-to-use ('when the user asks to register a sitemap URL on an already verified host') and two explicit when-not-to-use cases with the correct alternatives (get-user-sitemaps for listing, delete-host for host deletion). The destructive/confirm caveat on delete-host further steers the agent away.

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