Skip to main content
Glama

seo_update_redirect

Modify an existing redirect's source, target, status code, regex mode, or active state while preserving any fields you omit. Use it to fix broken links or adjust SEO redirects without recreating entries.

Instructions

Update a redirect (partial: omitted fields keep their stored value). Returns the redirect.

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": {
      "site": "<site>",
      "id": "<id>"
    },
    "name": "seo_update_redirect"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRedirect ID
siteYesSite id (see list_sites)
typeNoHTTP status: 301, 302, 307, 410, 451
to_urlNoTarget path or URL
enabledNoRedirect is active
from_urlNoSource path or URL (regex when is_regex)
is_regexNoTreat from_url as a regex

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv3.14.0
    • addedInput schema / properties / enabled
      Added value: +{
      +  "description": "Redirect is active",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / from_url
      Added value: +{
      +  "description": "Source path or URL (regex when is_regex)",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / is_regex
      Added value: +{
      +  "description": "Treat from_url as a regex",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / redirect
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Redirect fields to change",
      -  "type": "object"
      -}
    • addedInput schema / properties / to_url
      Added value: +{
      +  "description": "Target path or URL",
      +  "type": "string"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "HTTP status: 301, 302, 307, 410, 451",
      +  "enum": [
      +    301,
      +    302,
      +    307,
      +    410,
      +    451
      +  ],
      +  "type": "number"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "site",
      -  "id",
      -  "redirect"
      -]New value: +[
      +  "site",
      +  "id"
      +]
  2. Addedv3.4.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the important partial-update semantics (omitted fields retain stored values) and states that the redirect is returned. It omits mutation-side effects an agent would want: permission/auth requirements, validation or failure behavior for bad IDs, and whether changing from_url breaks live traffic. Useful but incomplete for an unannotated mutation tool.

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?

Two short clauses, zero filler, with the mutation mode and return value front-loaded. Every phrase carries information an agent needs.

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 7-parameter mutation tool with no annotations and no output schema, the description covers the essentials: identity via schema, partial-update contract, and the return shape. It falls short only on auth/permission and error behavior, which no other structured field supplies.

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%, so all seven parameters including the status enum are documented in the schema, giving a baseline of 3. The description adds only the general partial-update rule, which helps interpret optionality but adds no field-specific meaning beyond the schema.

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?

States a specific verb+resource ('Update a redirect') and the parenthetical clarifies the update mode, which distinguishes it from seo_create_redirect and seo_delete_redirect by implication. No sibling is named explicitly, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no mention of when to prefer seo_create_redirect or seo_bulk_update_posts_seo, and no stated prerequisites (e.g., needing an existing redirect ID). Usage is only inferable from the word 'Update'.

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