Skip to main content
Glama

Create redirect

create_redirect
Destructive

Create a permanent 301 redirect that takes effect immediately. Only when requested. from is a path on this blog, to is a full HTTP or HTTPS URL. List existing redirects first to avoid duplicates.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "create_redirect"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesFull HTTP or HTTPS destination URL.
fromYesOld path, without domain; nested paths supported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety profile is covered; the description adds value with "takes effect immediately" (live, instant effect on the blog) and the duplicate-avoidance warning. It stops short of saying what happens if a redirect already exists for the same path, which is the key ambiguity for a destructive, non-idempotent operation.

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?

Four short sentences, all front-loaded: what it does, when to use it, parameter formats, then the duplicate check. No sentence is redundant and nothing is buried.

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 2-parameter, no-output-schema tool with annotations covering the safety profile, this covers purpose, prerequisites and parameter shape well. The only gap is not stating the overwrite/conflict behavior when a redirect from the same path already exists.

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% and both property descriptions are already clear, so the schema carries the load. The description's "from is a path on this blog, to is a full HTTP or HTTPS URL" largely restates what the schema says, adding little constraint information beyond it — the baseline 3 applies.

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?

Specific verb + resource (create a permanent 301 redirect) with the meaningful qualifier that it takes effect immediately. It implicitly separates itself from update_redirect/delete_redirect by using the create verb, but never names those siblings to make the boundary explicit.

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?

"Only when requested" is a genuine when-to-use restriction that prevents proactive redirect creation, and "List existing redirects first to avoid duplicates" names a concrete sibling (list_redirects) as a prerequisite step. No explicit when-not-to-use case or comparison against update_redirect is given, so it stops short of full routing guidance.

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