Skip to main content
Glama

Extract links

extract_links
Read-only

List hyperlinks from a web page as absolute URLs with anchor text, and optionally filter by a substring to navigate a site or find specific sections.

Instructions

List the hyperlinks on a page as absolute URLs with their anchor text. Useful for navigating a site or finding a specific section. Optionally filter by a substring.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe page URL, including http:// or https://
filterNoOnly return links whose text or URL contains this substring.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and network scope are covered. The description adds that results are absolute URLs with anchor text, which is genuinely useful, but says nothing about what happens on unreachable pages or whether results are truncated.

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 short sentences, front-loaded with the core behavior, with no filler. Slightly more compact phrasing could fold the return-format detail into the first clause, but the structure is sound.

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 simple two-parameter read tool with no output schema, the description covers what the tool does, what it returns (absolute URLs plus anchor text), and the optional filter. Nothing essential to correct invocation is missing.

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 parameters are fully documented in the schema, establishing a baseline of 3. The description's note about optional filtering by substring restates the filter parameter rather than adding new meaning, and it does not clarify how filter matching interacts with anchor text versus URL beyond what the schema already says.

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 description names a specific verb and resource ("List the hyperlinks on a page") and states the exact return shape: absolute URLs paired with anchor text. That is a concrete, distinguishing capability that an agent can recognize without opening the schema.

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

Usage Guidelines3/5

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

It gives usage context ("Useful for navigating a site or finding a specific section") but never states when to prefer it over the sibling tools fetch_page or search_page. The guidance is suggestive rather than directive.

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