Skip to main content
Glama

Agent Data Tools: Web, documents and search

Redirect checker, URL unshortener: the full redirect chain

url_redirects
Read-only

Follow a URL's redirects hop by hop (up to 10) and return every hop's status code and Location, the final URL, total hops, timing and whether it loops. Expands short links (bit.ly, t.co…) to their destination without loading the page. Every hop is checked before it is requested; redirects to private addresses are reported, not followed. Use to unshorten a link, check an HTTPS or www redirect, or debug SEO redirect chains. Example: url=http://github.com. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http(s) URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations it discloses the 10-hop cap, SSRF-style pre-checks ('every hop is checked before it is requested; redirects to private addresses are reported, not followed'), and that the call changes nothing — which usefully explains why idempotentHint is false but destructiveHint is not. The pricing/billing detail is relevant agent-facing behavior, though return ordering and timeout handling are not spelled out.

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?

Core behavior is front-loaded in the first sentence, then usage, then safety and billing notes; each sentence carries information. The pricing/billing sentence is the longest and mildly repetitive ('Price $0.01/call ... failed calls free ... each call is charged, so repeats are not free'), keeping it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates fully by enumerating the returned fields (per-hop status and Location, final URL, hop count, timing, loop flag). For a single-parameter read-only tool it leaves nothing an agent needs in order to call it correctly.

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?

There is a single parameter with 100% schema coverage ('Absolute http(s) URL'), so the schema already carries the semantics. The description adds only an illustrative example (url=http://github.com) and no format or validation nuance beyond 'http(s)', so baseline 3 applies.

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 precise verb and resource — 'Follow a URL's redirects hop by hop (up to 10)' — and enumerates exactly what comes back: per-hop status code and Location, final URL, total hops, timing, loop flag. The unshortening scope (bit.ly, t.co) plus the 'without loading the page' qualifier separates it cleanly from sibling resolvers like url_parse or url_safety.

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?

Three concrete when-to-use triggers are given: unshortening a link, verifying an HTTPS or www redirect, and debugging SEO redirect chains. That is clear context, but no explicit exclusions or named alternatives (e.g. when to prefer url_parse or url_safety instead) 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