Skip to main content
Glama

Trace redirect chain

trace_redirects
Read-only

Follow a URL through its redirect chain (max 15 hops) reporting each hop's URL, status, latency and Location header, plus the final URL and whether a loop was detected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL. Private, loopback and cloud-metadata addresses are rejected.
maxHopsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=true, openWorldHint=true), and the description goes beyond them by disclosing the hop cap, per-hop report contents, final-URL return, and loop detection. It stops short of stating throttling/rate limits or that private/loopback targets are rejected (that lives only in the schema).

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?

One well-formed sentence, front-loaded with the action and scope, with the return payload attached compactly. No filler or repetition of the name/title.

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 carries the burden of describing returns and does so accurately (per-hop fields, final URL, loop flag), and annotations cover the safety profile. Minor gap: it doesn't mention rejection of private/loopback/metadata URLs, which is relevant observable behaviour, though the schema does.

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 50% (only 'url' is described). The description adds the 'max 15 hops' bound and the hop semantics of the walk, which maps to maxHops, but it doesn't clarify the default of 10 or the per-hop latency/status semantics in detail. Baseline 3 for partial coverage plus modest added value.

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 (Follow) and resource (a URL through its redirect chain), plus the exact payload it reports (hop URL, status, latency, Location header, final URL, loop flag). This reads clearly as distinct from siblings like check_url_status or check_ssl, which don't walk the redirect chain.

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 only implied: an agent can infer this is for diagnosing redirect behaviour, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g. when a simple status check suffices). No prerequisites or error conditions are stated.

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