Skip to main content
Glama

TofuBofu AI Visibility

generate_llms_txt

Read-onlyIdempotent

Generate a publishable llms.txt for a website from the pages found on it (llmstxt.org format), or validate the llms.txt it already has. Returns the file as text to save at the site root as /llms.txt. Use it when someone asks to create, fix or check llms.txt, or to make a site easier for AI engines to read. Nothing is invented: only pages that exist are listed, and the result says how many pages were read.

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": {
      "domain": "<domain>"
    },
    "name": "generate_llms_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesThe website to check, like acme.com. A full URL is accepted and reduced to its domain.
validate_existingNoTrue to check the llms.txt the site already serves instead of writing a new one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavior: the output is raw text intended to be saved at /llms.txt on the site root, only existing pages are listed (no fabrication), and the result reports how many pages were read — useful guarantees for trusting the output.

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?

It is front-loaded with the core action and modes, then the return format, then usage triggers, then trust guarantees — a sensible order. Every sentence carries information, though the 'make a site easier for AI engines to read' clause is mildly redundant with the purpose sentence.

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 correctly fills that gap by explaining the return value (text to save at the site root). Combined with the two-mode explanation and honesty guarantees, an agent has what it needs, though crawl scope or latency expectations for an open-world tool are unaddressed.

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 both domain and validate_existing are already documented, including the URL-to-domain reduction. The description's mode framing ('or validate the llms.txt it already has') mirrors the schema's validate_existing text rather than adding meaning beyond it, so the baseline 3 applies.

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 names a specific verb and artifact ('Generate a publishable llms.txt ... from the pages found on it') and covers the second mode ('or validate the llms.txt it already has') with the format reference (llmstxt.org). An agent can immediately distinguish this from sibling tools like check_ai_crawler_access or audit_site_for_ai.

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

Usage Guidelines4/5

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

It gives explicit trigger conditions: 'Use it when someone asks to create, fix or check llms.txt, or to make a site easier for AI engines to read.' That covers both modes and the intent behind them, but it does not name a sibling alternative or state when-not-to-use, so it stops short of a 5.

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