Skip to main content
Glama

Check a redirect map

check_redirects
Read-onlyIdempotent

Validate a redirect map by checking old-to-new URL pairs, following each redirect, and returning pass, warn, or fail verdicts with a plain fix for each entry.

Instructions

Test a site-move redirect map: follow each old URL by hand and say whether it ends on the right new page.

Use this before or after a site move, a domain change or a URL cleanup. For each pair it returns a verdict (ok, chain, temporary-redirect, wrong-status, wrong-target, no-redirect, not-redirected, target-broken, loop, too-many-hops, error), the real status chain (like 301 > 200), the final URL, and a plain fix. Does not change anything; it only sends HEAD or GET requests to the URLs you give it. Only test sites you own or may test.

Free limits: the first 200 pairs, 4 at a time, at most 5 requests a second to one site. Returns {"summary": {"checked","pass","warn","fail","readyToLaunch",...}, "rows": [...], "truncated", "skipped"}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_redirects"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoSite address added to old paths like /old-page, e.g. https://old.example.com. Only needed when the map has paths.
pathNoFull path to a local file of old,new pairs (CSV, tab, semicolon, pipe, or 'old -> new' lines). Leave empty if you pass text.
textNoThe redirect map as text, one pair per line, like: https://old.com/a,https://new.com/a. Leave empty if you pass path.
expectNoRedirect type you expect. permanent means 301 or 308 (the default).permanent
new_baseNoSite address added to new paths. Default: same as base.
max_chainNoMost redirects in a row before a chain warning. Default 1.
ignore_queryNoIgnore ?query=parts when comparing the final page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint=false), it discloses the request method (HEAD or GET), the free-tier limits (200 pairs, 4 concurrent, 5 requests/second per site), and the ethical constraint on which sites may be tested. It also enumerates the possible verdict outcomes, which is real behavioral context an agent cannot get from the structured fields.

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?

Purpose is front-loaded in the first sentence, followed by usage timing, limits, and return shape in a sensible order. The long parenthetical verdict list and the inline JSON return sketch make it dense, but each element carries information the agent would otherwise lack given there is no output schema.

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?

For a 7-parameter, no-required-parameter tool with no output schema, the description supplies the missing pieces: the return envelope (summary, rows, truncated, skipped), the meaning of the verdict values, the rate limits, and the non-mutating guarantee. Nothing essential for correct invocation is missing.

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 description coverage is 100%, so every parameter (base, path, text, expect, new_base, max_chain, ignore_query) is already documented in the schema. The description adds only indirect meaning via 'for each pair' and the redirect-type expectations; it provides no additional parameter-level guidance, so the 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?

The description opens with a concrete verb and resource — 'Test a site-move redirect map' — and clarifies the batch scope with 'follow each old URL by hand', which implicitly separates it from the single-URL sibling check_one_redirect. It also states what is produced: a verdict per pair.

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?

It gives clear situational guidance ('before or after a site move, a domain change or a URL cleanup') plus a safety boundary ('Only test sites you own or may test'). It stops short of naming when to prefer the sibling check_one_redirect or of stating exclusions, so it does not reach a 5.

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

Deploy Server

Other Tools