Skip to main content
Glama

Check an llms.txt

check_llms_txt
Read-only

Check an llms.txt against the format (H1 title, blockquote summary, H2 sections of - [name](url): notes links) and size. Pass url to check the file a site publishes, including whether its first 25 links answer; or pass text to check a file you have (a draft, a local copy), with base for where it lives and links to also test its links. Returns a short report with each issue and its line, and the sections with their link counts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_llms_txt"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA site, a docs section, or the llms.txt itself, e.g. "llmstxt.org" or "docs.astro.build/llms.txt". Use url or text.
baseNoWith text: the site or llms.txt link it belongs to, e.g. "example.com". Resolves relative links.
textNoThe llms.txt itself (up to 2 MB), instead of url.
linksNoWith text: also check that its first 25 links answer (and llms-full.txt next to base). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / base
      Added value: +{
      +  "description": "With text: the site or llms.txt link it belongs to, e.g. \"example.com\". Resolves relative links.",
      +  "type": "string"
      +}
    • addedInput schema / properties / links
      Added value: +{
      +  "description": "With text: also check that its first 25 links answer (and llms-full.txt next to base). Default false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / text
      Added value: +{
      +  "description": "The llms.txt itself (up to 2 MB), instead of url.",
      +  "type": "string"
      +}
    • changedInput schema / properties / url / description
      Previous value: -"A site, a docs section, or the llms.txt itself, e.g. \"llmstxt.org\" or \"docs.astro.build/llms.txt\"."New value: +"A site, a docs section, or the llms.txt itself, e.g. \"llmstxt.org\" or \"docs.astro.build/llms.txt\". Use url or text."
    • removedInput schema / required
      Removed value: -[
      -  "url"
      -]
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, and non-destructive, so the safety profile is covered; the description adds value beyond that by describing the returned report (issues with line numbers, sections with link counts) and the 25-link liveness check, which explains why idempotentHint is false. It does not mention latency or network-failure behavior, which matters for an openWorld fetch tool.

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?

Two sentences, front-loaded with the verb and the checklist of format rules, followed by mode selection and return shape; no filler sentences. The parenthetical format list is dense but each element is relevant to the check being described.

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 properly compensates by explaining the report contents, and it covers both input modes and the optional link test. The remaining gap is edge behavior for a zero-required-parameter tool: it never says what happens when neither `url` nor `text` is supplied, nor how network failures surface in the report.

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 the baseline is 3 and the schema already documents url/text exclusivity, the 2 MB limit, and base's relative-link resolution. The description largely restates those semantics in prose, adding only the either/or framing of url versus text rather than new meaning.

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?

States a specific verb and resource (check an llms.txt) and enumerates the exact rules validated: H1 title, blockquote summary, H2 sections, link syntax, and size, plus link liveness. The purpose is unmistakable, but the description never names or contrasts the siblings (llms_txt, llms_full_txt), so differentiation is inferred rather than stated.

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?

Clearly routes between the two modes: `url` when checking a site's published file, `text` when checking a draft or local copy, with `base` supplying location and `links` enabling link testing. That is explicit when-to-use guidance for each parameter combination, though it gives no exclusions or failure-mode guidance (e.g. what happens if both or neither are passed).

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