Skip to main content
Glama
brilliantdirectories

brilliant-directories-mcp

Official

updateRedirect

Idempotent

Update an existing redirect record by ID to adjust its destination or source path. Fields not specified remain unchanged, and changes take effect immediately.

Instructions

Update a redirect - Update an existing redirect record by ID. Fields omitted are untouched. Writes live data.

Use when: adjusting an existing rule's destination or source path. Rare - most redirects are create-once.

Required: redirect_id.

type is wrapper-managed: not exposed as an input. All redirects created via this MCP are custom; other BD type values are reserved for system-generated redirects.

See also: createRedirect (add new), deleteRedirect (remove permanently).

Returns: { status: "success", message: {...updatedRecord} } - the full updated record after changes applied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
redirect_idYesRedirect primary key (required to identify record)
old_filenameNoThe old URL path being redirected from, relative to the domain root (e.g. old-slug, not the full URL)
new_filenameNoThe new destination URL path
db_idNoDatabase record ID of the source content object this redirect was generated from (0 if not tied to a record)
idNoLegacy secondary identifier; typically 0 for system-generated redirects
_clear_fieldsNoColumn names to clear to empty string. Available on every `update*` operation. Works on base columns AND EAV/`users_meta` rows (rows preserved with `value=""`). To actually clear a field you MUST use this parameter — sending the field with `""` alone is a no-op (BD drops empty values). To remove a `users_meta` row entirely, use `deleteUserMeta`. See **Rule: Clearing fields**. Example: `_clear_fields: ["h2", "hero_link_url"]`.
Behavior5/5

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

Discloses that writes are live, the type field is wrapper-managed, and the return format. Adds context beyond annotations (idempotentHint, destructiveHint, etc.) without contradiction.

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?

Well-structured with clear sections, front-loaded with main purpose, no redundant information. Every sentence serves a purpose.

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 an update tool with complete schema and no output schema, the description provides return format, behavior, clearing rules, and sibling relationships. Comprehensive.

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 already covers 100% of parameters with descriptions. The description adds the important rule about _clear_fields and clarifies that omitted fields are untouched, adding significant value beyond the schema.

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 explicitly states it updates an existing redirect by ID, and mentions 'Fields omitted are untouched.' It also distinguishes from siblings by referencing createRedirect and deleteRedirect.

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

Usage Guidelines5/5

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

Provides explicit guidance: 'Use when: adjusting an existing rule's destination or source path. Rare - most redirects are create-once.' Also lists required parameter and see-also for alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/brilliantdirectories/brilliant-directories-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server