Skip to main content
Glama

Check public links

check_broken_links
Read-onlyIdempotent

Use this for a focused check of up to 20 public HTTP(S) links found in supplied HTML. It does not fetch base_url, follow redirects, or retain response bodies.

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": {
      "html": "<html>"
    },
    "name": "check_broken_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesRaw HTML markup supplied by the user; this is not a webpage URL.
base_urlNoOnly resolves relative links; it does not fetch this webpage.
max_linksNoMaximum links to check, from 1 to 20.

Output Schema

NameRequiredDescriptionDefault
errorNo
linksYes
overviewYes
redirectsYes
healthy_linksYes
links_checkedYes
eligible_linksYes
links_truncatedYes
unverified_linksYes
unreachable_linksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / eligible_links
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / links_truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / unverified_links
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "links",
      -  "links_checked",
      -  "healthy_links",
      -  "redirects",
      -  "unreachable_links",
      -  "overview"
      -]New value: +[
      +  "links",
      +  "links_checked",
      +  "eligible_links",
      +  "links_truncated",
      +  "healthy_links",
      +  "redirects",
      +  "unreachable_links",
      +  "unverified_links",
      +  "overview"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / overview / properties / kind / enum
      Previous value: -[
      -  "html",
      -  "css",
      -  "seo",
      -  "schema",
      -  "links",
      -  "report"
      -]New value: +[
      +  "html",
      +  "css",
      +  "seo",
      +  "schema",
      +  "links",
      +  "report",
      +  "site"
      +]
  3. Changed4 schema fields changed
    • addedInput schema / properties / base_url / description
      Added value: +"Only resolves relative links; it does not fetch this webpage."
    • addedInput schema / properties / html / description
      Added value: +"Raw HTML markup supplied by the user; this is not a webpage URL."
    • addedInput schema / properties / max_links / description
      Added value: +"Maximum links to check, from 1 to 20."
    • changedInput schema / properties / max_links / maximum
      Previous value: -25New value: +20
  4. Changed6 schema fields changed
    • addedOutput schema / properties / healthy_links
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / links_checked
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / overview
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "counts": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "key": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "tone": {
      +            "enum": [
      +              "error",
      +              "warning",
      +              "info",
      +              "success"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "key",
      +          "label",
      +          "value",
      +          "tone"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "detail": {
      +      "type": "string"
      +    },
      +    "headline": {
      +      "type": "string"
      +    },
      +    "kind": {
      +      "enum": [
      +        "html",
      +        "css",
      +        "seo",
      +        "schema",
      +        "links",
      +        "report"
      +      ],
      +      "type": "string"
      +    },
      +    "next_action": {
      +      "type": "string"
      +    },
      +    "shown": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "status": {
      +      "enum": [
      +        "passed",
      +        "needs_attention",
      +        "partial",
      +        "failed",
      +        "not_applicable"
      +      ],
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "total": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "status",
      +    "title",
      +    "headline",
      +    "detail",
      +    "total",
      +    "shown",
      +    "truncated",
      +    "counts"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / redirects
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / unreachable_links
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "links"
      -]New value: +[
      +  "links",
      +  "links_checked",
      +  "healthy_links",
      +  "redirects",
      +  "unreachable_links",
      +  "overview"
      +]
  5. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds real semantics: redirects are not followed and response bodies are not retained, which changes how results should be interpreted. The remaining gap is what happens when the HTML contains more than the link cap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both front-loaded with the scope and then the negative behaviors that most affect interpretation. Nothing is repeated from the schema or annotations.

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 an output schema present and full parameter coverage, the definition supplies the essentials for a read-only, open-world link check. The one unresolved point is selection behavior when the HTML contains more links than max_links allows (default 15 vs. the stated cap of 20).

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 coverage is 100%, so the schema already documents html, base_url, and max_links including the 1-20 range. The description reinforces the "does not fetch base_url" constraint and the public-HTTP(S)-only scope, but adds no format or behavior detail the schema lacks; baseline 3 applies.

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-resource pair ("focused check of ... public HTTP(S) links") and bounds the input ("links found in supplied HTML"), which separates it from the site/page audit siblings that operate on URLs. It never names a sibling explicitly, so an agent must infer the boundary from context.

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?

"Use this for a focused check" sets a clear condition for selection, and "in supplied HTML" implies the caller already has markup rather than a URL. No explicit exclusions or named alternatives are given, so the agent is left to infer that URL-based auditing belongs to the audit_* tools.

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