Skip to main content
Glama

Broken Link Check

broken_link_check
Read-onlyIdempotent

Find broken links two ways. Default (crawl mode): crawl a site starting from a URL (same-origin pages only, bounded by maxPages) and check every linked URL for broken status codes, returning each broken link with the page(s) it was found on. Sitemap mode (viaSitemap: true): parse the site's sitemap.xml (following one level of sitemap-index nesting) and check the status of every URL listed in it instead. Note: some external sites (e.g. social platforms) block automated HEAD/GET requests and may show up as false positives.

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

Input Schema

NameRequiredDescriptionDefault
urlYesStarting URL to crawl — or, in sitemap mode, the sitemap.xml URL or any page URL on the site
maxPagesNoMax same-origin pages to crawl in crawl mode (default 20, capped at 50)
viaSitemapNoCheck the URLs listed in the site's sitemap.xml instead of crawling pages (default false)
checkExternalNoCrawl mode only: also check links pointing off-site (default true; crawling never follows off-site links)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / checkExternal / description
      Previous value: -"Also check links pointing off-site (default true; crawling never follows off-site links)"New value: +"Crawl mode only: also check links pointing off-site (default true; crawling never follows off-site links)"
    • changedInput schema / properties / maxPages / description
      Previous value: -"Max same-origin pages to crawl (default 20, capped at 50)"New value: +"Max same-origin pages to crawl in crawl mode (default 20, capped at 50)"
    • changedInput schema / properties / url / description
      Previous value: -"Starting URL to crawl"New value: +"Starting URL to crawl — or, in sitemap mode, the sitemap.xml URL or any page URL on the site"
    • addedInput schema / properties / viaSitemap
      Added value: +{
      +  "description": "Check the URLs listed in the site's sitemap.xml instead of crawling pages (default false)",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context beyond that: same-origin crawling, maxPages bounding, one level of sitemap-index nesting, and false positives caused by external sites blocking automated HEAD/GET requests.

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 definition is front-loaded with the overall purpose and then walks through the two modes efficiently. The final false-positive note is useful, though the description is somewhat dense rather than maximally compact.

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?

For a read-only, open-world crawler with no output schema, the description covers the important operational modes, scope boundaries, and a known false-positive pitfall. It does not describe timeout, failure, or rate-limit behavior, but nothing essential for selecting and invoking the tool 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 four parameters are already documented. The description clarifies that url changes meaning between crawl and sitemap modes and reinforces the maxPages and checkExternal scope, but most of this restates the schema rather than adding syntax or format detail beyond 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?

The description states a specific verb and resource ('Find broken links') and clearly separates two operational modes: crawl mode and sitemap mode. It does not explicitly compare itself to sibling tools such as redirect_chain_check or check_robots_sitemap, so it stops short of full sibling differentiation.

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?

It gives explicit mode-selection guidance: default crawl mode versus sitemap mode via viaSitemap:true, and explains what checkExternal does only in crawl mode. It does not state when another tool would be a better choice, so it lacks explicit exclusions or alternatives.

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.