Skip to main content
Glama

Generate llms.txt

generate_llms_txt
Read-only

Generate an llms.txt file (llmstxt.org format) for a public website. Uses the site name, summary and pages you pass; anything missing is filled from the homepage and sitemap.xml. Returns the file text plus notes on how to improve it.

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

Input Schema

NameRequiredDescriptionDefault
pagesNoOptional list of the most important page URLs. If omitted, sitemap.xml is used.
summaryNoOne paragraph: what the site is, who it is for, what is most useful.
site_urlYesSite root, e.g. "https://example.com".
max_pagesNo
site_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already mark it read-only and open-world, and the description adds real behavioral detail beyond that: fallback network fetches (homepage, sitemap.xml) when fields are omitted, plus the return shape ('file text plus notes on how to improve it'). It stops short of noting rate limits or what the notes contain.

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?

Three tightly written sentences: what it makes, how inputs are sourced, and what comes back. The most important facts (output format and fallback behavior) are front-loaded with zero filler.

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 carries the return-value burden and does so ('file text plus notes'), and the fallback mechanism is disclosed. It could still say more about what the improvement notes look like or how many pages are returned, but an agent has enough to call it correctly.

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 60%, and the description compensates by explaining the meaningful optionality: pages fall back to sitemap.xml and missing name/summary are inferred. It says nothing about max_pages (whose bounds and default are only in the schema), leaving a small gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and artifact ('Generate an llms.txt file (llmstxt.org format)') plus the target ('a public website'), so the agent knows exactly what is produced. It does not explicitly contrast with the sibling generate_ai_robots_txt, but the distinct output resource makes confusion unlikely.

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 clearly explains how inputs are used and that 'anything missing is filled from the homepage and sitemap.xml', which tells the agent this is a build-from-scratch generator that tolerates partial input. It gives no explicit when-not-to-use or named alternative, keeping it out of 5 territory.

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