Skip to main content
Glama

mcp_update_plugin

Update a single WordPress plugin to its newest version, optionally forcing a fresh update check first. Keeps previously active plugins activated after the file swap.

Instructions

Update a single plugin to the latest version. refresh:true first runs a fresh update check for it (wp.org and Plugin Update Checker / GitHub releases), so a just-released update is seen without waiting 12 h. A plugin that was active before is reactivated after the file swap (reactivated / reactivate_error report it). updated:false means already up to date; a failed download or unpack is an error (502, cvrt-mcp-endpoints 1.16.0+). cvrt-mcp-endpoints itself is refused (409): update it via mcp_install_plugin_zip or wp-admin.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>",
      "plugin": "<plugin>"
    },
    "name": "mcp_update_plugin"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
pluginYesPlugin file path (e.g., akismet/akismet.php)
refreshNoRun a fresh update check for this plugin first (cvrt-mcp-endpoints 1.16.0+)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.14.0
    • addedInput schema / properties / refresh
      Added value: +{
      +  "description": "Run a fresh update check for this plugin first (cvrt-mcp-endpoints 1.16.0+)",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "plugin"
      -]New value: +[
      +  "site",
      +  "plugin"
      +]
  3. First observedv2.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and delivers: a reactivation side effect after the file swap with named response fields, updated:false meaning up-to-date, 502 on failed download/unpack, and a 409 refusal for the endpoints plugin. Missing pieces are rollback/partial-failure behavior and whether any permissions are required.

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-loaded with the core action, then layered side effects and error codes. Dense but every sentence carries information; the parenthetical version gates and status codes are the only mild clutter.

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?

No output schema exists, yet the description explains the meaningful return signals (updated, reactivated, reactivate_error) and the failure modes. For a three-parameter mutation tool, an agent has enough to call it and interpret the result correctly.

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 coverage is 100%, so the baseline is 3. The description does add real meaning for refresh (it forces a fresh wp.org/GitHub check rather than the 12 h cache), but site and plugin are left entirely to the schema text.

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?

Opens with a specific verb+resource+scope: 'Update a single plugin to the latest version.' The word 'single' distinguishes it immediately from mcp_update_all_plugins, and the closing line points at mcp_install_plugin_zip for the one case this tool refuses.

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?

Gives an explicit condition for using refresh:true (a just-released update without waiting 12 h) and names the alternative path (mcp_install_plugin_zip or wp-admin) for cvrt-mcp-endpoints. It does not say when to prefer mcp_check_plugin_updates first or how to handle a plugin that isn't installed, so it stops short of full routing guidance.

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