Skip to main content
Glama

manage_wp_site

Execute WP-CLI commands to manage WordPress sites: handle posts, pages, plugins, themes, users, options, database, cron, and rewrite rules without leaving your workflow.

Instructions

Execute WP-CLI commands against a WordPress installation. Provides site management: posts, pages, plugins, themes, users, options, database, scaffolding, cron, rewrite rules. Requires WP-CLI to be installed. Dangerous commands (db drop, user delete, etc.) require manual execution. Do NOT include the 'wp' prefix in the command.

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": {
      "command": "<command>",
      "conversationId": "<conversationId>"
    },
    "name": "manage_wp_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format. Will be appended as --format flag if not already in the command.
wpPathNoPath to the WordPress installation. Defaults to current directory.
commandYesWP-CLI command to execute (without the 'wp' prefix). Examples: - "post list --post_type=page --format=json" - "plugin list --format=table" - "option get blogname" - "user list --role=administrator" - "theme status" - "db export backup.sql" - "scaffold plugin my-plugin" - "cron event list" - "rewrite flush" - "cache flush"
conversationIdYesThe conversation ID obtained from learn_wordpress_api.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two real traits: a prerequisite (WP-CLI installed) and a safety boundary (destructive commands are blocked and must be run manually). It stops short of saying whether the tool is read-only by default, what permissions the WordPress user needs, how output is returned, or what an error looks like, which matters a lot for a tool that can run arbitrary commands.

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?

Five short lines, front-loaded with the core action, then scope, then prerequisites, then the invocation rule. Every sentence is functional; the final prefix rule is slightly redundant with the schema but is defensible as a repeated gotcha.

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 four-parameter tool with full schema coverage and no output schema, the description covers what the tool is, what it needs, and what it refuses to do. The remaining gap is how results are surfaced and how failures are reported for arbitrary commands, but that is a modest omission rather than a blocking one.

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 command, format, wpPath, and conversationId parameters are already well documented with examples and an enum. The description's only parameter-level contribution is the 'no wp prefix' rule, which the schema itself already states, so it adds essentially nothing beyond the structured data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ("Execute WP-CLI commands against a WordPress installation") and enumerates the managed domains (posts, plugins, db, cron, rewrite rules). It reads as a general-purpose escape hatch, and while it does not name which sibling to prefer for narrower tasks like analyze_plugin or scaffold_component, the scope statement is clear enough to distinguish it in practice.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives invocation guidance (omit the 'wp' prefix, WP-CLI must be installed) and a hard exclusion (dangerous commands like db drop or user delete require manual execution). What it does not provide is any routing advice against the many siblings that overlap with it, such as analyze_database, analyze_plugin, or scaffold_component, so the agent must infer when this broad tool beats a specialized one.

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