Skip to main content
Glama

List links from a page (sitemap/llms.txt/RSS-first)

links
Read-only

Enumerate URLs under a site or page without fetching each one, drawing from sitemaps, llms.txt, feeds, or page content, then filter results to find the right page before fetching.

Instructions

Enumerate URLs under a site or page without fetching each one. Tries, in this order and regardless of what is cached: sitemap.xml (from robots.txt or the conventional path; gzip is unpacked up to the body-size limit and a warning: line is added when it cannot be read), then the llms.txt the page advertises, then RSS/Atom feeds, then falls back to links found in the page itself. The response header reports which source was used (source:), the count:, and (truncated) when more than 200 links were cut. Each link is one line, - <title> — <url> (title omitted when unknown; for llms.txt it is name: description). filter narrows by substring or * glob against URL and link text; an empty result states whether the filter removed everything or the source had no links. Each source is cached like a page (15 minutes by default, up to 24 hours when Cache-Control max-age says so), so repeating the call with another filter does not hit the site again. Use it to find the right page before fetch. It does not return page content, reads the first 3 child sitemaps of a sitemap index in order and stops reading further children once 200 links are collected (filter is applied afterwards, so a URL found only in an unread child cannot be matched), and never guesses an llms.txt location.

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

Input Schema

NameRequiredDescriptionDefault
urlYesStarting URL
filterNoSubstring match against URL/link text, or a glob using *

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changedv0.1.5
    • changedInput schema / properties / filter / description
      Previous value: -"URL/リンクテキストの部分一致、または*を使ったglob"New value: +"Substring match against URL/link text, or a glob using *"
    • changedInput schema / properties / url / description
      Previous value: -"起点URL"New value: +"Starting URL"
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds source priority, cache TTLs, 200-link truncation, the first-three-child-sitemap limit, and the fact that filtering happens after collection. These are operational behaviors an agent could not infer from the annotations.

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 one line, followed by ordered operational details; nearly every clause carries a constraint an agent needs. It is long and the final sentence is a dense run-on, but the length is justified by the multi-source behavior it discloses.

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?

For a multi-source enumerator with caching, truncation, and no output schema, the description supplies the return-line format, response header fields, source order, and key limitations. Nothing material is missing for correct invocation.

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 100% and both parameters are documented in the schema, so the baseline is 3. The description adds meaningful context beyond the schema: filter matches URL and link text, supports * globs, is applied after collection, and empty results distinguish filter-removal from source emptiness.

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 opening sentence gives a specific verb ('Enumerate') and resource ('URLs under a site or page') and immediately rules out fetching each one. The final sentence explicitly routes the agent to the sibling tool, saying to use it before `fetch`, which distinguishes it clearly from `fetch` and `screenshot`.

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

Usage Guidelines5/5

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

It names the pre-fetch discovery use case and explicitly states that it does not return page content, marking the boundary with `fetch`. It also explains how filter retries work against cached results and what an empty result means, leaving little ambiguity about when to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools