Skip to main content
Glama

analyze_internal_links

Read-onlyIdempotent

Analyze internal and external links on a page to get anchor text, nofollow status, placement, quality distribution, and counts. Optionally detect broken links.

Instructions

Analyze all internal and external links on a page. Returns link lists with anchor text, nofollow status, position (nav/content/footer/sidebar), anchor text quality distribution, and summary counts. Optionally checks for broken links.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe fully-qualified URL to analyze.
maxLinksNoMaximum number of links to analyze. Defaults to 500.
checkBrokenLinksNoWhen true, issue HEAD requests to every link to detect broken (4xx/5xx) links. Much slower.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, but the description adds real value by disclosing the shape of the results (anchor text, nofollow status, positional bucket, quality distribution, summary counts). It also warns that the broken-link option is an additional, slower pass, which is a cost signal beyond the structured fields, though it says nothing about rate limits, page-size limits, or fetch behavior implied by openWorldHint.

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 the action, then the return shape, then the optional mode. No filler, though the final sentence partly repeats what the checkBrokenLinks schema field already says.

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 no output schema, the description correctly spends its words describing what comes back, and all required invocation data is present in the schema. Minor gaps remain around truncation at maxLinks and whether the page is fetched once or rendered, but nothing essential for calling the tool correctly 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 description coverage is 100%, so all three parameters are already documented, making a baseline 3 appropriate. The description echoes the optional broken-link behavior but adds no new meaning and never mentions maxLinks or what happens when the cap is hit.

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?

The description states a specific verb and resource ('Analyze all internal and external links on a page') and enumerates the returned data, so an agent knows exactly what it produces. It does not differentiate itself from siblings such as analyze_page, analyze_backlinks, or crawl_site, which leaves ambiguity about page-level link auditing versus site-wide crawling.

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 explicit when-to-use or when-not-to-use guidance, and no sibling is named as an alternative. A user wanting link structure for one page versus a whole site gets no routing help from the text; the only conditional hint is the optional broken-link check.

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