Skip to main content
Glama

seo_generate_sitemap_and_robots

Read-onlyIdempotent

Generates production-ready, standard-compliant sitemap.xml and robots.txt files with crawler directives for Googlebot, Bingbot, and AI search engines (GPTBot, ClaudeBot, PerplexityBot).

USAGE GUIDELINES:

  • Use when a website is missing sitemap.xml or robots.txt, or needs clean, updated configuration files.

  • Do NOT use to audit existing files; use 'seo_audit_robots_and_sitemap' instead.

  • Do NOT use to crawl pages; use 'seo_audit_sitemap_multipage' instead.

BEHAVIORAL TRANSPARENCY:

  • Pure generation tool. Returns formatted XML and robots.txt file contents as text output. Does not write to disk directly unless copied by user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsNoList of relative or absolute URLs to register in sitemap.xml (e.g. ["/", "/about", "/pricing"]).
targetUrlYesBase website domain URL (e.g. "https://example.com").
disallowedPathsNoURL path prefixes to disallow in robots.txt (e.g. ["/admin/", "/api/private/"]).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / disallowedPaths / description
      Previous value: -"Paths to disallow in robots.txt (e.g. [\"/admin/\", \"/api/private/\"])."New value: +"URL path prefixes to disallow in robots.txt (e.g. [\"/admin/\", \"/api/private/\"])."
    • changedInput schema / properties / targetUrl / description
      Previous value: -"Base website URL (e.g., https://example.com)."New value: +"Base website domain URL (e.g. \"https://example.com\")."
    • changedInput schema / properties / urls / description
      Previous value: -"Array of relative or absolute URLs to register in sitemap.xml."New value: +"List of relative or absolute URLs to register in sitemap.xml (e.g. [\"/\", \"/about\", \"/pricing\"])."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and non-destructive hints. The description adds critical behavioral context: it returns file contents as text output and does not write to disk unless copied by the user. This goes beyond the annotations and clarifies the side-effect-free nature.

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?

The description is well-structured with clear sections (USAGE GUIDELINES, BEHAVIORAL TRANSPARENCY). The main purpose is front-loaded, and every sentence adds value. It's concise despite covering multiple aspects.

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?

Given the tool's simplicity and full schema coverage, the description covers all necessary context: what it generates, when to use it, what it returns (text output, no disk write), and which sibling tools to use instead. No output schema exists, but the return format is explicitly stated.

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%, with each parameter (urls, targetUrl, disallowedPaths) already described. The description itself doesn't add parameter-level meaning, but it doesn't need to given the schema coverage. Baseline 3 is appropriate.

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 states a specific verb and resource ('generates sitemap.xml and robots.txt') and names the exact output format and crawler directives. It also explicitly distinguishes itself from sibling audit tools in the usage guidelines, so an agent can tell it apart without opening schemas.

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?

The description provides explicit when-to-use ('missing sitemap.xml or robots.txt, or needs clean, updated configuration files') and when-not-to-use conditions, naming the specific alternative tools for audits and crawls. This is unambiguous 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