Skip to main content
Glama

wp_activate_plugin

Activate an installed WordPress plugin, defaulting to a dry-run preview; require allow_prod for live production writes.

Instructions

Activate one already-installed plugin.

ACTIVATING AN UNTESTED PLUGIN CAN BREAK A LIVE SITE: the activation hook runs immediately and can fatal, and the plugin starts filtering the site's output the moment it loads. Activate on staging first. plugin may be a slug ('akismet'), a plugin file ('akismet/akismet') or its .php path - all three resolve to the same plugin, and a slug matching two installed plugins is refused with the candidates rather than guessed. A plugin that is already active comes back as a no-op, not an error. DEFAULTS TO dry_run=true (returns a preview naming the plugin and its current status; changes nothing). Pass dry_run=false to apply - the change is verified by re-reading the plugin's status. Requires the REST transport. Prod writes require allow_prod=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pluginYes
dry_runNo
installYes
allow_prodNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior5/5

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

The description discloses critical behavioral details: the activation hook runs immediately and can cause fatal errors, dry_run defaults to true and changes nothing, allow_prod defaults to false to protect production, and activating an already-active plugin is a no-op. It clearly states side effects and default behaviors, compensating for the lack of annotations.

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?

The description is informative but slightly repetitive, with the 'DEFAULTS TO' phrasing used twice. It is structured in clear sentences and covers essential warnings without excessive verbosity. The repetition is minor and does not hinder comprehension, but a more concise version could improve readability.

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?

The description covers activation behavior, dry-run semantics, production protection, and plugin name formats, but it omits the meaning of the required `install` parameter and does not describe the output or return value (though no output schema is provided). This missing information leaves a significant gap for an agent to safely invoke the 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?

The description explains the `plugin` parameter (accepts slug, file, or .php path), `dry_run` (preview vs. apply), and `allow_prod` (production guard). However, the required `install` parameter is not mentioned at all, leaving users to guess its meaning (likely a site identifier). This gap reduces the overall parameter coverage despite explanations for three of four parameters.

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 clearly states the tool's function: 'Activate one already-installed plugin.' It uses a specific verb and resource, distinguishing it from sibling tools like wp_deactivate_plugin and wp_list_plugins. The purpose is immediately identifiable without needing to inspect the schema.

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?

The description provides practical usage warnings, such as the risk of breaking a live site and the recommendation to test on staging first. It also explains the dry_run and allow_prod flags, giving clear guidance on safe execution. It does not explicitly compare with alternatives, but the actionable advice is sufficient for most use cases.

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

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/ad02/wp-ops-mcp'

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