Skip to main content
Glama

Update redirect

update_redirect
Destructive

Update an existing URL redirect. Partial update: the fields you provide are changed; omitted fields are preserved. Redirects have no draft: the change applies on the live site without a publish, usually within minutes. A change that would lead the redirect back to its own source, directly or through other rules, is refused. Moving the source to / (the home page) or the destination to another site needs confirm: true, sent only after the user agreed.

Input Schema

NameRequiredDescriptionDefault
activeNoWhether the redirect is active
sourceNoUpdated source URL path
confirmNoSet true only after the user confirmed replacing the home page or sending visitors to another site
permanentNoWhether this is a permanent (301) or temporary (302) redirect
projectIdYesThe project ID
redirectIdYesThe redirect ID
descriptionNoUpdated description
destinationNoUpdated destination URL path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Set true only after the user confirmed replacing the home page or sending visitors to another site",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true): it discloses that changes go live without a publish, that they land 'usually within minutes', that self-referential loops are refused, and that two classes of high-impact edits are gated behind an explicit user-confirmed flag. That is exactly the behavioral context an agent needs for a destructive mutation.

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?

Four tight sentences, front-loaded with the core action and partial-update rule, then escalating to side effects, refusal conditions, and confirmation gating. Every sentence carries information; only the ordering of the confirm rule could be tightened.

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 destructive, open-world mutation with no output schema, it covers the essential unknowns: immediate live effect, error condition (loop refusal), and the human-in-the-loop gate for home-page and external-destination changes. It omits only secondary details such as how deactivating affects live traffic.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not: partial-update semantics for all provided fields, and the protocol for confirm (only after the user agreed, tied to the two specific risky changes). It does not explain the interaction between active and permanent, but the added value is genuine.

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 and resource ('Update an existing URL redirect') and immediately clarifies it is a partial update where omitted fields are preserved. This clearly separates it from create_redirect and delete_redirect by name and semantics, though no sibling is named explicitly.

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?

Gives concrete conditions for the risky path: moving source to / or destination to another site requires confirm: true, and confirm should be sent only after the user agreed. Usage context (live immediately, no publish step) is clear, but there is no guidance about when to update vs. create a new redirect or when to deactivate instead.

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