Skip to main content
Glama

mcp_delete_theme

Delete an inactive WordPress theme by stylesheet; the active theme is refused to prevent site breakage.

Instructions

Delete an inactive theme (the active theme is refused)

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>",
      "stylesheet": "<stylesheet>"
    },
    "name": "mcp_delete_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
stylesheetYesTheme stylesheet (folder name)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.14.0
    • changedInput schema / properties / stylesheet / description
      Previous value: -"Theme folder name"New value: +"Theme stylesheet (folder name)"
  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: -[
      -  "stylesheet"
      -]New value: +[
      +  "site",
      +  "stylesheet"
      +]
  3. First observedv2.0.0

TDQS

B3.4/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 burden; it usefully discloses the guard that the active theme is refused, which is real behavioral value. However, it says nothing about irreversibility of deletion, required permissions/capabilities, or what happens when the stylesheet doesn't exist.

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?

A single short sentence with the key constraint front-loaded in the parenthetical. Efficient, though it could have used the space for one more clause on irreversibility.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter destructive tool with no output schema, the core guard is covered. Missing disclosure of irreversibility and failure modes leaves it only minimally sufficient.

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 both parameters (site, stylesheet) are already documented in the schema. The description adds no format, matching, or lookup detail beyond what the schema provides, so baseline 3 applies.

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?

States a specific verb (delete) and resource (theme), making it clearly distinct from siblings like mcp_update_theme or wp_activate_theme. The parenthetical adds a scope qualifier, though the 'inactive' criterion is only partly elaborated.

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?

The phrase 'inactive theme' plus the refusal note implies the agent must deactivate a theme before deleting it, but that prerequisite is never stated explicitly and no alternative tool is named for activation or listing themes.

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