Skip to main content
Glama

llms.txt for a link

llms_txt
Read-onlyIdempotent

Get an llms.txt index for any link: title, one-line summary, and sections of the most useful links with short descriptions. Defaults to the site’s own llms.txt when available. Use native:false to generate a draft for check_llms_txt. Source and cache metadata are in structuredContent.

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": "llms_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAny public http(s) link, e.g. "docs.stripe.com/payments", "github.com/honojs/hono", a PDF or a video URL. The scheme is optional.
crawlNoChannels and profiles only: how many newest items are opened and described (0–10). Defaults: YouTube 5, GitHub 5, Instagram 4, TikTok 4, X 5. A non-default depth is cached apart; building it counts as ceil(crawl ÷ default) new links (at least 1).
freshNoBypass the 24h cache. A rolling 60-second cooldown per caller and normalized URL is shared by both Reader tools, regardless of native. Ordinary cached reads still work.
nativeNoPrefer a published llms.txt. Set false to generate instead: content[0].text is the exact sanitized file and any warning is in a separate block. Does not bypass the cache.
offsetNoMode full: skip this many linked pages and read the next slice. Pass structuredContent.nextOffset to continue.

Output Schema

NameRequiredDescriptionDefault
urlYesNormalized link.
modeYes
cachedYes
sourceYes`native` = published by the site; `generated` = made by llms.ink.
warningsNoSanitization notices: no removed text or source-controlled carrier labels.
nextOffsetNoMode full: pass as `offset` to read the next slice of linked pages; absent on the last slice.
generatedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Mode full: skip this many linked pages and read the next slice. Pass structuredContent.nextOffset to continue.",
      +  "maximum": 10000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / nextOffset
      Added value: +{
      +  "description": "Mode full: pass as `offset` to read the next slice of linked pages; absent on the last slice.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / crawl / description
      Previous value: -"A channel or profile only: how many of its newest items are opened and described (0–10). Defaults: YouTube 5, GitHub 5, Instagram 4, TikTok 4, X 5. Another depth is cached apart and, when built, counts as ceil(crawl ÷ default) new links (at least 1). Other links ignore it."New value: +"Channels and profiles only: how many newest items are opened and described (0–10). Defaults: YouTube 5, GitHub 5, Instagram 4, TikTok 4, X 5. A non-default depth is cached apart; building it counts as ceil(crawl ÷ default) new links (at least 1)."
    • changedOutput schema / properties / url / description
      Previous value: -"The link after normalization."New value: +"Normalized link."
  3. Changed4 schema fields changed
    • addedInput schema / properties / fresh / default
      Added value: +false
    • changedInput schema / properties / fresh / description
      Previous value: -"Ignore the 24h cache and rebuild. Default false."New value: +"Bypass the 24h cache. A rolling 60-second cooldown per caller and normalized URL is shared by both Reader tools, regardless of native. Ordinary cached reads still work."
    • addedInput schema / properties / native
      Added value: +{
      +  "default": true,
      +  "description": "Prefer a published llms.txt. Set false to generate instead: content[0].text is the exact sanitized file and any warning is in a separate block. Does not bypass the cache.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "cached": {
      +      "type": "boolean"
      +    },
      +    "generatedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "mode": {
      +      "enum": [
      +        "llms",
      +        "full"
      +      ],
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "`native` = published by the site; `generated` = made by llms.ink.",
      +      "enum": [
      +        "native",
      +        "generated"
      +      ],
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "The link after normalization.",
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "description": "Sanitization notices: no removed text or source-controlled carrier labels.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "const": "hidden_instruction",
      +            "type": "string"
      +          },
      +          "location": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "location"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "url",
      +    "mode",
      +    "source",
      +    "cached",
      +    "generatedAt"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / crawl
      Added value: +{
      +  "description": "A channel or profile only: how many of its newest items are opened and described (0–10). Defaults: YouTube 5, GitHub 5, Instagram 4, TikTok 4, X 5. Another depth is cached apart and, when built, counts as ceil(crawl ÷ default) new links (at least 1). Other links ignore it.",
      +  "maximum": 10,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  5. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive semantics, so the safety profile is covered. The description adds that source and cache metadata land in structuredContent and that the default path prefers a published file, which is useful context. It does not restate the 24h cache or cooldown mechanics, which live in the schema, so the added behavioral value is modest.

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 short sentences with no filler: what it returns, what the default is, and how to switch modes. The most decision-relevant fact, the return shape, is front-loaded. Nothing repeats the schema verbatim.

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 five parameters, an output schema, and full annotation coverage, the description is nearly complete for an agent deciding whether to call it. It covers the return contents, the default-versus-generated mode split, and where metadata surfaces. It leaves the caching and offset-continuation mechanics to the schema, which is reasonable but means an agent must open the schema to understand cost implications.

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 description coverage is 100%, so url, crawl, fresh, native, and offset are already fully documented at the parameter level. The description's only added meaning is the workflow tie between native:false and check_llms_txt, which is a small increment over the schema. 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 resource ('Get an llms.txt index for any link') and immediately enumerates what comes back: title, one-line summary, and sections of useful links. The mention of the site's own llms.txt versus generated drafts implicitly separates it from the check_llms_txt and llms_full_txt siblings.

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?

Explains the default path (use the site's published llms.txt when available) and names the explicit alternative mode with a reason: 'Use native:false to generate a draft for check_llms_txt.' It routes the agent toward a sibling without stating when to skip this tool entirely, so it falls just short of full when/when-not coverage.

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