Skip to main content
Glama

Update redirect

update_redirect
Idempotent

Updates a redirect. Only the fields you pass are changed.

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": {
      "redirect": "<redirect>"
    },
    "name": "update_redirect"
  }
}

Input Schema

NameRequiredDescriptionDefault
activeNoWhether the redirect is active. Defaults to true.
accountNoAccount name or UUID to look for the redirect in. Searches all your accounts by default.
redirectYesThe redirect's UUID, or its source host when that host has only one redirect.
match_pathNoPath to match, with an optional trailing `*` for prefix matching. `*` (the default) matches every path.
source_hostNoNew source host.
preserve_pathNoAppend the request path to the destination URL. Defaults to true.
redirect_typeNo`permanent` (301, the default) or `found` (302).
destination_urlNoNew destination URL. Must start with `http://` or `https://`.
preserve_query_stringNoAppend the query string to the destination URL. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context with 'Only the fields you pass are changed,' clarifying partial-update semantics that the annotations do not convey. It stops short of describing failure modes, permission requirements, or what happens when the redirect identifier is ambiguous.

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 sentences, front-loaded with the action and followed by the most important semantic caveat. Nothing is wasted and nothing is buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With nine parameters, full schema coverage, and annotations present, the description is adequate but thin. It omits any mention of the account-scoping behavior, the identifier flexibility, or error conditions, leaving the agent to rely entirely on the schema for a moderately complex mutation tool.

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 all nine parameters, including the redirect identifier's UUID-or-source-host form and the enum for redirect_type, are already documented. The description adds only the general partial-update rule and no parameter-specific 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.

Purpose4/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 ('Updates a redirect'), which is unambiguous. It does not distinguish this tool from siblings like create_redirect or delete_redirect, but the verb itself makes the operation clear.

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 guidance on when to use this tool versus create_redirect, delete_redirect, or list_redirects, and no mention of prerequisites such as needing an existing redirect or account scoping. The only usage-adjacent information is the partial-update note, which is behavioral rather than a when-to-use rule.

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