Skip to main content
Glama

Agent Ready by WorkPods.ai

Draft an llms.txt file

draft_llms_txt
Read-only

Drafts a starter llms.txt (llmstxt.org) for a site from its home page and sitemap: an H1 with the site name, its description as the summary, and links to its main pages grouped by section, titled from the pages where they were fetched. Use it when the site has no llms.txt or a broken one. result has llmsTxt (the file text), saveAs (where it goes), links, sitemapUrls and existingLlmsTxt (the outcome of the current one). The person should edit it before publishing. Returns JSON: summary (one sentence) and result (the details below); resultId and reportUrl are null, as drafts are not saved. Errors come back as one plain sentence. Recorded: the checked domain and path (never the query string), the tool, which checks failed and the app name; never an IP address or page text.

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": {
      "url": "<url>"
    },
    "name": "draft_llms_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAny page on the site; only its origin is used: an absolute http or https URL, such as https://example.com/pricing.
maxLinksNoThe most page links to include, 5 to 50. Defaults to 25.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description goes well beyond by disclosing that resultId and reportUrl are null because drafts are not saved, that errors return as one plain sentence, and exactly what is recorded (domain and path, never query string, IP or page text). The existingLlmsTxt field also reveals prior-state behavior a caller would otherwise not expect.

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?

The purpose is front-loaded in the first sentence before the return-shape detail. The middle section is dense with field enumerations, but each clause is factually load-bearing since no output schema exists to carry it; only minor tightening (e.g. 'the details below') would help.

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 fully compensates: it names the return fields, explains why two are null, describes the error format, and documents the telemetry scope. For a two-parameter drafting tool, an agent has everything needed to call it and interpret the response.

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 url and maxLinks are already documented, including the 'only its origin is used' rule and the 5–50 range. The description adds no parameter-level detail beyond restating that input comes from the home page and sitemap, 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?

States a specific verb and artifact: 'Drafts a starter llms.txt (llmstxt.org) for a site from its home page and sitemap,' and then specifies the exact structure produced (H1 site name, description summary, grouped page links). This separates it from check_robots_sitemap_llms_txt, which inspects rather than drafts.

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?

Gives an explicit triggering condition — 'Use it when the site has no llms.txt or a broken one' — plus a post-condition that a human should edit before publishing. It does not name the sibling checker as the alternative for the already-working case, but the condition itself is clear enough to route an agent.

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