Skip to main content
Glama

Check one redirect

check_one_redirect
Read-onlyIdempotent

Check whether an old URL redirects to the expected new URL with the correct redirect type and no chain, returning a pass, warn, or fail verdict and a plain fix.

Instructions

Check one redirect: does old_url end on new_url, with the right redirect type and no chain?

Same checks as check_redirects, for a single pair. Returns one row: verdict, severity (pass, warn or fail), statusChain, finalUrl, notes and a plain fix. Only sends HEAD or GET requests to old_url and what it redirects to.

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": {
      "old_url": "<old_url>",
      "new_url": "<new_url>"
    },
    "name": "check_one_redirect"
  }
}

Input Schema

NameRequiredDescriptionDefault
expectNoRedirect type you expect. permanent means 301 or 308 (the default).permanent
new_urlYesThe page it should end on, full address with https://.
old_urlYesThe old URL, full address with https://.

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?

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructiveness, and the description goes further by disclosing the actual network behavior: only HEAD or GET requests to old_url and whatever it redirects to. With no output schema present, it also compensates by naming the returned row's fields (verdict, severity, statusChain, finalUrl, notes, fix) and the pass/warn/fail severity scale.

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 short sentences plus a line-break clause, front-loaded with the core question and followed by the return shape and network footprint. The leading 'Check one redirect:' mildly restates the name/title, a small redundancy, but nothing else is wasted.

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 three-parameter, no-output-schema, read-only tool, the description covers purpose, success criteria, return fields, severity vocabulary, and the HTTP methods used. Nothing an agent needs in order to call it correctly 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%, including the enum and default for 'expect', so the schema already carries parameter meaning. The description only reinforces the intent of old_url/new_url ('does old_url end on new_url') and 'the right redirect type' without adding format or edge-case detail, which is the expected baseline when the schema does the heavy lifting.

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 states a specific verb and resource (check one redirect) and spells out the success criteria: old_url must end on new_url, with the right redirect type and no chain. It also scopes itself to a single pair, which cleanly separates it from the batch sibling check_redirects.

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?

The phrase 'Same checks as check_redirects, for a single pair' gives an agent a clear routing rule: this is the single-pair variant of a known batch tool. It stops short of an explicit when-not statement (e.g., 'use check_redirects for lists of URLs'), so it is clear context rather than full guidance.

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