Skip to main content
Glama

wp_fix_best_practices

Apply automated fixes for common WordPress best practice issues, including setting permalinks to /%postname%/ and disabling XML-RPC via mu-plugin. Pass the fix IDs to resolve them.

Instructions

Apply auto-fixes for best practice issues. Currently supports fixing: "permalinks" (sets to /%postname%/) and "xmlrpc" (disables via mu-plugin). Pass an array of fix IDs to apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fixesYesArray of check IDs to fix (e.g. ["permalinks", "xmlrpc"])
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does disclose exact side effects: permalinks are set to /%postname%/ and XMLRPC is disabled via an mu-plugin. It does not describe return values or error behavior for invalid fix IDs, which keeps it slightly below a 5.

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?

The description is two sentences, front-loads the main action, and packs the essential supported values and behaviors into minimal space. No filler or repetition of schema details.

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 simple one-parameter tool with no output schema, the description provides everything needed to invoke it correctly: the fix IDs and their effects. It could be more complete by noting that wp_audit_best_practices is the companion discovery step and by describing the response, but these are minor gaps.

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, and the description goes beyond the schema by explaining what each supported fix ID actually does. It explicitly lists 'permalinks' and 'xmlrpc' as the currently supported values and adds the consequence of applying them.

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 uses a specific verb ('Apply') with a clear resource ('auto-fixes for best practice issues') and enumerates the exact supported fixes and their effects. This distinguishes it from the sibling audit tool (wp_audit_best_practices) and from content/plugin operations.

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

Usage Guidelines3/5

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

The description implies the tool is used when best-practice issues need correction and only supports the listed fix IDs, but it never explicitly says to run wp_audit_best_practices first or explains when not to use this tool. The usage context is inferred rather than stated.

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/THE-KIPDEV/wpagent-mcp'

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