Skip to main content
Glama

Trace redirects

check_redirects
Read-onlyIdempotent

Trace a URL's redirect chain to detect loops, long chains, temporary redirects, HTTPS downgrades and error endings. Optionally verify all host/scheme variants end at the same final URL.

Instructions

Follow a URL's redirect chain hop by hop (max 10) and check host/scheme consistency.

Returns every hop with status code, Location and timing, flags loops, long chains, temporary redirects, https-to-http downgrades and error endings; optionally checks that the http/https and www/non-www variants all end at the same final URL.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL, e.g. https://example.com/page
check_variantsNoAlso test http/https and www/non-www variants.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructive, so the safety profile is covered. The description goes well beyond that by disclosing the 10-hop cap, the per-hop payload (status code, Location, timing), and the specific anomalies it flags: loops, long chains, temporary redirects, https-to-http downgrades and error endings. That is exactly the behavioral detail an agent needs to interpret results.

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?

Two sentences, front-loaded with the core action and the hop limit before the option list. The second sentence is a dense enumeration, but each item is informative rather than filler; a slightly tighter list would read better without losing content.

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?

An output schema exists, so return-shape explanation is not required, and annotations carry the safety profile. The description still covers scope, limits and flagged conditions well. Minor gaps remain around failure modes outside the chain itself (invalid or unreachable URL, timeout behavior) and whether non-HTTP redirect mechanisms are followed.

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; the description earns above that by adding the hop ceiling and by sharpening check_variants beyond the schema's 'Also test http/https and www/non-www variants' into the actual success criterion ('all end at the same final URL'). It does not add format or validation detail for the url parameter, which the schema already handles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Follow a URL's redirect chain hop by hop') with an explicit bound (max 10) and a secondary check (host/scheme consistency). This is clearly distinct from sibling tools like check_robots, check_sitemap, or pagespeed, which an agent can rule out from the name plus this sentence alone.

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?

Usage is implied by the described behavior: use it when you want to trace where a URL ends up and whether the chain is clean. There is no explicit when-to-use versus when-not guidance, no mention of prerequisites (e.g. URL must be reachable), and no routing to a sibling for related checks such as site-wide crawling.

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