Skip to main content
Glama

wp_publish_swap

Promote a staged draft to the live post, then verify by purging cache, deleting draft, and probing the public URL. Requires allow_prod for production writes.

Instructions

Promote a staged draft onto the live post (WP keeps a revision), then verify.

Copies the draft's content onto live_id, purges cache (Divi), deletes the draft, and probes the public URL. Prod writes require allow_prod=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
installYes
live_idYes
draft_idYes
allow_prodNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.4.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden and does disclose key side effects: copies content onto live_id, purges cache, deletes the draft, and probes the public URL. It also notes the prod guard (allow_prod=true), but it does not mention authentication, error behavior, or what happens if verification fails.

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?

The description is compact and front-loaded, with the main purpose in the first sentence and supporting operational details in the second. It contains no redundant or irrelevant content.

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?

It covers the main workflow and side effects, but it omits output/return behavior, error/verification failure handling, and the meaning of install. Given the absence of an output schema and annotations, these gaps reduce completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides no parameter descriptions, but the narrative explains live_id as the target live post, draft_id as the draft being copied/deleted, and allow_prod as a production-write guard. The install parameter remains unexplained, so coverage is not complete.

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 and resource: 'Promote a staged draft onto the live post' and clarifies the scope by mentioning draft deletion and verification. It is distinguishable from sibling tools like wp_discard_draft and wp_edit_page, though it does not explicitly name an alternative.

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 description implies the use case ('Promote a staged draft') and describes the sequence of operations, but it does not explicitly state when to choose this tool over alternatives such as wp_edit_page or wp_discard_draft.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ad02/wp-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server