Skip to main content
Glama

Refresh permalinks

wp_flush_rewrite_rules
Destructive

Regenerate the permalink (rewrite) rules stored in the database; it helps when posts, custom post types or taxonomies answer 404 after a structural change. A soft flush: the .htaccess file is not rewritten, and the permalink structure itself stays as set (Settings › Permalinks). Returns flushed=true. Requires manage_options. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Adds real context beyond the annotations: it is a soft flush, .htaccess is untouched, the permalink structure is preserved, manage_options is required, and the response is flushed=true. Slight gap: annotations flag destructiveHint=true while the prose emphasizes harmlessness, so an agent gets no explicit statement of what is overwritten (the rewrite_rules option).

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?

Three compact sentences: operation first, symptom/use case second, side effects and auth third. Nothing is redundant and no clause is filler.

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?

With no params and no output schema, the description covers the essentials: effect, non-effects, permission requirement, return value, and the bridge's single-site scope. Only the precise state change (rewriting the rewrite_rules option) is left implicit against a destructiveHint=true annotation.

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?

Zero parameters, so the baseline is 4. The description also documents the return value (flushed=true), which compensates for the missing output 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?

States a specific verb and resource: regenerate permalink/rewrite rules stored in the database. No sibling tool performs this operation, and the accompanying symptom (404s after a structural change) makes the purpose unambiguous.

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 a clear triggering condition (posts, CPTs or taxonomies returning 404 after a structural change) and defines the boundary of the operation (soft flush only). It does not name an explicit alternative tool, but no sibling overlaps, so the guidance is nearly complete.

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