Skip to main content
Glama
Browser MCP Server

Browser MCP Server

get_links

Extract compact, deduplicated links from a webpage with an optional maximum count, enabling AI agents to navigate and analyze page structure.

Instructions

List page links (compact, deduplicated).

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

Input Schema

NameRequiredDescriptionDefault
pageIdNo
maxLinksNoMax links (default: 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the whole burden. "Compact, deduplicated" is a useful output trait, but nothing states that this is a read-only operation, whether it hits the network or the live DOM, whether it waits for load, or how the default cap of 30 links truncates results beyond what the schema already implies.

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?

One short, front-loaded sentence with no filler, and the parenthetical efficiently conveys two result properties. It is arguably too terse, but nothing present is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and one of two parameters undocumented, the definition is under-specified for an agent to predict the return shape (array of URLs? anchors with text?) or the effect of defaults. It needs at least the addressing rule for pageId and the truncation behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: maxLinks is documented in the schema, but pageId has no description anywhere. The description adds nothing about pageId (does it default to the current page?) or about what happens when maxLinks is omitted or the link count exceeds it.

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?

"List page links" gives a specific verb plus resource, and "(compact, deduplicated)" hints at the shape of the result, which no sibling tool name suggests. It stops short of saying which page's links (current page vs. the optional pageId) or what counts as a link, so it is clear but not fully disambiguated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no mention of alternatives such as get_page_html, get_page_content, or evaluate_javascript, which could also surface links. The agent must infer on its own that this is the lightweight option for anchor extraction.

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