Deactivate Plugin
Switches off a plugin without removing it, so its settings and data are kept and it can be switched back on. Confirms afterwards that it really is inactive. Does nothing and reports no change if it was already off.
Also known as: turn off a plugin, disable a plugin, switch a plugin off.
| Property | Value |
|---|---|
| Ability slug | mosmcp/plugin-deactivate |
| Wire tool name | mosmcp__plugin-deactivate |
| Category | Plugins (mosmcp-plugins) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | activate_plugins |
| Minimum default role | Administrator |
| Annotations | readOnly: false · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| plugin | string | Yes | — | Which plugin. Accepts the folder name ("wordpress-seo"), the plugin file ("wordpress-seo/wp-seo.php"), or the display name ("Yoast SEO"). |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| plugin | string | Yes | |
| name | string | ||
| previous | string | Yes | Status before the call: "active" or "inactive". |
| current | string | Yes | Status afterwards, checked against the site rather than assumed. |
| changed | boolean | Yes | |
| notes | string[] |
Example
Sample prompt
Switch off the Hello Dolly plugin.
Example request (json)
{
"jsonrpc": "2.0",
"id": 227,
"method": "tools/call",
"params": {
"name": "mosmcp__plugin-deactivate",
"arguments": {
"input": {
"plugin": "Hello Dolly"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 227,
"result": {
"isError": false,
"structuredContent": {
"plugin": "hello.php",
"name": "Hello Dolly",
"previous": "active",
"current": "inactive",
"changed": true,
"notes": [
"The plugin files and its stored settings are untouched, so it can be switched back on at any time."
]
}
}
}
Edge cases / errors
- Target is the plugin providing this MCP connection → refused with mosmcp_self_protected.
- Plugin is network-activated on multisite → refused with mosmcp_plugin_network_active; a network admin must do it.
- Already inactive → nothing changes, changed is false.
- Something re-activates it straight away → current stays "active" with a note naming the likely cause.
| << Previous | Next >> |
|---|---|
| Count Plugins by Status | Get Plugin Details |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.