Skip to main content
Glama

extract_links

Pure HTML parser. Given a single page's HTML and its baseUrl, returns every resolved to absolute, separated into internal vs external by host, with cleaned anchor text, rel attribute, and nofollow flag. Skips fragments, mailto:, tel:, javascript:, and empty hrefs. Designed to feed compute_link_graph: the agent crawls pages on the user's machine (their IP, no Cloudflare subrequest cap) and calls extract_links per page, then ships the structured page data into compute_link_graph.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesRaw HTML of the page
baseUrlYesAbsolute URL of the page (used to resolve relative links and identify internal vs external)

TDQS

A4.4/5.0
Behavior5/5

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

No annotations exist, so the description fully carries the burden. It declares the tool is a 'Pure HTML parser' (no side effects), details exactly which href types are skipped, and describes the output structure. All behavioral traits are disclosed, making the tool's behavior predictable.

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 description is moderately concise and front-loaded with the key phrase 'Pure HTML parser.' Every sentence provides specific information, though it could be slightly shorter without losing clarity. Structure is logical.

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?

Given the tool's simplicity, the description explains the output thoroughly (fields returned, internal vs external, skipped links) and links to its intended downstream use (compute_link_graph). No output schema exists, but the description compensates fully.

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%, with both parameters well-described in the schema. The description adds minimal extra meaning for parameters beyond what the schema provides (e.g., baseUrl used for resolution). Baseline of 3 is appropriate.

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 uses a specific verb ('extract') and clearly defines the resource (links from HTML). It explicitly states the output format (absolute, internal vs external, cleaned anchor text, rel, nofollow) and what is skipped (fragments, mailto:, etc.). This distinguishes it from siblings like compute_link_graph, which consumes its output.

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?

The description explains that it is designed to feed compute_link_graph and that it should be called per page crawled from the user's machine. This gives clear context for when to use it, though it does not explicitly list scenarios where it should not be used (e.g., if no raw HTML is available).

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: page SEO vs site AI discovery vs bot checks vs graph computation vs link extraction vs brand info vs page fetching vs listing vs entity lookup vs freshness parsing vs search. No overlapping responsibilities.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in lower_snake_case (e.g., analyze_page, check_bots, compute_link_graph). No mixing of conventions.

Tool Count5/5

11 tools is well-scoped for the server's purpose (SEO/web analysis). Each tool earns its place, covering page, site, bot, link graph, entity, and freshness analysis without unnecessary bulk.

Completeness5/5

The tool surface appears complete for its domain: it covers individual page SEO, site-wide AI discovery, bot accessibility, link graph analysis, entity lookup, and freshness signals. No obvious gaps for the intended analysis workflows.

Resources