Skip to main content
Glama

Delete a plugin

wp_delete_plugin
Destructive

Delete an installed plugin by its file path as wp_list_plugins lists it (e.g. akismet/akismet.php); an active plugin is deactivated first, and WordPress runs the plugin's uninstall routine, which can remove its settings and data. Permanent: no undo point is recorded; switching a plugin off without removing it is wp_deactivate_plugin. Returns deleted and plugin. Needs delete_plugins; refused when DISALLOW_FILE_MODS is set. AlphaBridge itself (AlphaBridge MCP, AlphaBridge MCP Pro, the owner drop-in) is refused here, because deleting it would end this connection or take tools away from it, and its uninstall can remove the connections, settings and undo points as well; it is deleted in wp-admin under Plugins. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault
pluginYesExact plugin file of an installed plugin as wp_list_plugins lists it, e.g. "akismet/akismet.php". A folder name alone or an unknown file is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / plugin / description
      Added value: +"Exact plugin file of an installed plugin as wp_list_plugins lists it, e.g. \"akismet/akismet.php\". A folder name alone or an unknown file is refused."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint/idempotentHint annotations, it discloses that active plugins are deactivated first, that the uninstall routine may delete settings and data, that no undo point is recorded, the delete_plugins capability requirement, the DISALLOW_FILE_MODS refusal, and the self-protection refusal for AlphaBridge. This is exactly the context annotations cannot carry.

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?

Front-loads the effect and identifier, then the permanence warning, then prerequisites and refusals — a sensible order. The AlphaBridge self-exclusion sentence is long and somewhat verbose, though it carries real safety value.

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 a one-parameter destructive tool with no output schema, the description covers effect, side effects, permissions, refusals, alternatives, and names the return fields (deleted, plugin). Nothing needed to call it safely is missing.

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 the single parameter's format and refusal of folder-name-only or unknown files are already documented in the schema. The description restates the same example and constraint rather than adding new meaning, so the baseline 3 applies.

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 (delete) and resource (installed plugin), plus the identifier format taken from wp_list_plugins. It explicitly contrasts with wp_deactivate_plugin, so an agent can distinguish it from siblings without opening any schema.

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?

Gives explicit when-to-use (permanent removal), when-not (switch off without removing → wp_deactivate_plugin), and hard refusal conditions (DISALLOW_FILE_MODS, AlphaBridge's own plugin, handled in wp-admin instead). Nothing about selection is left to inference.

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