Skip to main content
Glama

Discover links from a page

discover_links
Read-onlyIdempotent

Return approved HTTPS links from one starting page, with source and link labels. Reads only the starting page. Use an optional query to rank and filter links by their labels and destination paths.

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

Input Schema

NameRequiredDescriptionDefault
urlYesApproved public HTTPS URL.
limitNoMaximum number of links to return.
queryNoLiteral phrase or words to match.
sameHostNoKeep only links to the final hostname of the starting page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioural context: it only reads the starting page (no link following) and it returns only 'approved HTTPS' links, which tells the agent output may be filtered. Return payload is only lightly sketched ('source and link labels').

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?

Three short sentences, front-loaded with purpose, then scope, then the optional refinement. No padding or repetition, though the closing sentence mixes ranking and filtering without ordering the two operations.

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 four fully described parameters and a rich annotation set, the remaining burden on the description is small, and it covers scope, filtering and return shape. The main omission is guidance on choosing this over fetch_page or extract_page_structure when an agent wants page content rather than links.

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%, so the baseline is 3, and the description earns an extra point by explaining that query both ranks and filters, and that matching is against labels and destination paths rather than page text alone. It adds nothing further on limit or sameHost beyond the schema.

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 ('Return approved HTTPS links from one starting page') plus the payload ('source and link labels'), which is unambiguous. It does not name or distinguish itself from neighbours like extract_page_structure or fetch_page, so an agent must infer the boundary itself.

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?

'Reads only the starting page' implicitly rules out crawling and the query sentence hints at when to use filtering, so usage is inferable. There is no explicit when-to-use / when-not-to-use statement and no named alternative for the adjacent tasks of page fetching or structure extraction.

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