Skip to main content
Glama

Install a plugin

install_plugin

Install a WordPress plugin from the WordPress.org repository by its slug, with optional immediate activation after installation.

Instructions

Install a plugin from the WordPress.org repository by its slug, optionally activating it straight away. Search first with search_plugins to get the right slug. Installation writes files to the server and needs filesystem write access.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesWordPress.org plugin slug, e.g. "classic-editor". Find it with search_plugins.
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
activateNoActivate immediately after installing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses the side effect that 'Installation writes files to the server' and the requirement for 'filesystem write access', which adds value beyond the readOnlyHint=false annotation. It also notes the optional activation behavior, giving the agent useful operational context.

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?

Three short sentences, each earning its place: purpose, usage guidance, and side-effect warning. The description is front-loaded with the core action and avoids any filler or redundant schema repetition.

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 an install action with three well-documented parameters, the description covers the source, the prerequisite search step, side effects, and permission requirements. It does not describe the return value, but there is no output schema and the operational guidance is sufficient for correct invocation.

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 schema already explains slug, site_id, and activate. The description mostly repeats the schema's guidance about search_plugins and optional activation, adding little new parameter-level meaning beyond what the schema provides.

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 names a specific verb ('Install'), resource ('plugin from the WordPress.org repository'), and key mechanism ('by its slug'), making the tool's purpose immediately clear. It also distinguishes itself from siblings like create_plugin or install_theme by stating its source and slug-based workflow.

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 explicitly advises 'Search first with search_plugins to get the right slug', giving the agent a concrete prerequisite and routing step. It does not name alternative tools for non-repository plugins, but the repository scope strongly implies when this tool is appropriate.

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

Deploy Server

Other Tools