Skip to main content
Glama

Delete a draft theme

delete_draft_theme
Destructive

Discard a draft theme's files permanently while keeping the live site unchanged. Use to clean up sandbox theme copies.

Instructions

Discard a draft theme and its files. The live site is unaffected — this only removes the sandbox copy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeYesDraft theme id to discard.
confirmNoRequired — draft files are removed permanently.
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.

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.3/5.0
Behavior4/5

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

Annotations already communicate destructive intent, and the description adds exactly what is destroyed ('a draft theme and its files') and what is not ('the live site'). The sandbox-vs-live distinction is meaningful behavioral context beyond the structured hints.

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?

Two sentences with no filler. The action and scope are front-loaded, and every clause earns its place.

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?

For a simple destructive tool with complete schema coverage and no output schema, the description plus schema fully explains what is removed, what is preserved, and what confirmation is required. Nothing needed for correct invocation is missing.

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 fully documents all three parameters. The description adds no parameter-level details beyond 'and its files', but that is acceptable given the high baseline coverage.

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 opens with a specific verb ('Discard') and a specific resource ('a draft theme and its files'), then clarifies scope by stating the live site is unaffected. This clearly distinguishes it from file-level tools like delete_theme_file and from publish_draft_theme.

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 makes clear this tool is for discarding an unpublished sandbox theme, which gives an agent solid context for when to use it. It does not name alternative tools explicitly or provide exclusions, but the draft/sandbox framing is enough to route selection correctly.

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