Skip to main content
Glama

Plugin aktivieren oder deaktivieren

set_wordpress_plugin_state
Destructive

Aktiviert oder deaktiviert ein bereits installiertes WordPress-Plugin. Der wichtigste Anwendungsfall ist das Abschalten eines Plugins, das die Website zerlegt oder kompromittiert wurde. Der Plugin-Slug wird serverseitig gegen den Bestand der Installation selbst geprüft (wp-cli, nicht das WP Toolkit) — auch ein per wp-admin oder FTP eingespieltes Plugin ist damit schaltbar. Lässt sich der Bestand nicht lesen, wird der Versuch trotzdem gewagt statt fälschlich "nicht installiert" zu melden; scheitert auch er, sagt die Antwort ausdrücklich, dass das kein Beleg für ein fehlendes Plugin ist.

Input Schema

NameRequiredDescriptionDefault
domainYesDie Domain, z. B. example.de
pluginYesSlug des Plugins, z. B. "woocommerce" — nicht der Anzeigename. Alle installierten Plugins mit Slug nennt get_wordpress_plugins (get_outdated_plugins zeigt nur die mit verfügbarem Update, get_wordpress_status nennt gar keine Namen, nur den Zähler plugins_to_update). Ist der Slug nicht bekannt, dort nachsehen statt zu raten.
enabledYestrue = aktivieren, false = deaktivieren
site_urlNoNur nötig, wenn mehrere WordPress-Installationen auf der Domain liegen

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / plugin / description
      Previous value: -"Slug des Plugins, z. B. \"woocommerce\" — nicht der Anzeigename. Es gibt derzeit KEIN Werkzeug, das alle installierten Plugins nennt: get_outdated_plugins zeigt nur die mit verfügbarem Update, get_wordpress_status nennt gar keine Namen, nur den Zähler plugins_to_update. Ist der Slug nicht bekannt, beim Kunden nachfragen statt zu raten."New value: +"Slug des Plugins, z. B. \"woocommerce\" — nicht der Anzeigename. Alle installierten Plugins mit Slug nennt get_wordpress_plugins (get_outdated_plugins zeigt nur die mit verfügbarem Update, get_wordpress_status nennt gar keine Namen, nur den Zähler plugins_to_update). Ist der Slug nicht bekannt, dort nachsehen statt zu raten."
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld, and the description goes well beyond them: it discloses server-side slug validation via wp-cli rather than the WP Toolkit inventory, the deliberate best-effort retry when inventory can't be read, and the fact that a failure response explicitly must not be read as proof the plugin is absent. That error-semantics detail is the kind of behavioral context an agent cannot get from structured fields.

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?

Purpose and the highest-stakes use case are front-loaded, and every sentence carries information. The final sentence is long and nested but justifies its length by covering a non-obvious failure mode.

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 4-parameter destructive mutation with no output schema, the definition covers scope, slug sourcing, fallback behavior, and failure interpretation. It does not say whether the operation is instantly reversible or what permissions the API token needs, which are the remaining relevant gaps.

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% — the schema already explains domain, slug-not-display-name, the false=enabled boolean, and the multi-install site_url case. The description adds only the server-side validation angle for the slug, so the baseline of 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 pair (activate/deactivate) on a precisely scoped resource (an already-installed WordPress plugin), immediately distinguishing it from install_wordpress_plugin. The added note that plugins installed via wp-admin or FTP are also covered sharpens the scope further.

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?

Names a concrete primary use case (shutting off a plugin that wrecked or compromised the site), which tells the agent when to reach for this tool. It does not explicitly contrast against install_wordpress_plugin or start_bulk_wordpress_update, so the alternative-routing is implied rather than stated.

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