Skip to main content
Glama

Trace redirects

redirect_chain
Read-only

Follows a URL's redirects and returns the status and target of every hop, up to 5. Free: needs an API key but no balance.

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL or domain, such as https://example.com/page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the 5-hop cap, the per-hop return content (status and target), and an access constraint (API key required, no balance needed). It stops short of saying what happens when a chain exceeds 5 hops or how cycles are reported.

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 short sentences, no waste, and the core behavior is front-loaded before the access note. Every clause carries information an agent can act on.

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 one-parameter, no-output-schema tool this is nearly complete: it says what is fetched, what is returned per hop, and the depth limit. The only gap is edge-case behavior past the 5-hop cap or on redirect loops.

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 single url parameter is already documented in the schema, and the description adds no format or normalization detail beyond what is there. Baseline 3 applies when the schema carries the parameter meaning.

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?

"Follows a URL's redirects and returns the status and target of every hop" gives a specific verb (follow/trace) and resource (redirect chain), plus the shape of the result. It does not explicitly position itself against any sibling, though no sibling in the list (check_robots, check_sitemap, dns_lookup, etc.) overlaps with redirect tracing.

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?

When-to-use is only implied by the stated purpose (trace a redirect chain for a given URL). There is no explicit trigger, no exclusion, and no named alternative; the only added constraint is the "up to 5" hop cap, which is a limit rather than a routing guideline.

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.