Skip to main content
Glama

Set content status

fabrement-set-content-status
Destructive

Change a page/post/custom record's status — everything reversible: "publish", "draft" (unpublish), "trash" (recoverable), "restore" (out of the trash, with the status and address it had before; find trashed records with list-content {status:"trash"}). Records are created and edited as drafts with save-content; deleting for good is delete-content. ASK THE USER FIRST, IN THE SAME TURN, for "publish" and for "trash", and wait for the answer — naming the record and what will happen to it. PUBLISH puts the page in front of everyone and in front of search engines at once, and a crawled URL is not un-crawled by reverting the status; TRASH takes a live page off the site, so every link and every menu entry pointing at it breaks while it sits there. Neither is yours to decide. "Finish this page" is not consent to publish it; preview {target:"content"} shows a draft at its real address without making it public, which is what verifying looks like. Rules: get-skill-doc {id:"content-contract"} — read it before the first call.

Input Schema

NameRequiredDescriptionDefault
statusNoDefault "publish". "draft" unpublishes; "trash" moves to the trash; "restore" takes it out.
contentIdYesContent id (see list-content).

Output Schema

NameRequiredDescriptionDefault
urlYes
titleNo
statusYesStatus AFTER the call, read back from WordPress.
changedNoFalse when it already had that status.
postTypeNo
contentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With only destructiveHint=true in annotations, the description carries the safety burden well: it explains the side effects of PUBLISH (public at once, search-engine crawling that reverting does not undo) and TRASH (live links and menu entries break), plus the draft-by-default creation model and an authorization/consent requirement. The only soft spot is the opening claim "everything reversible," which the later text partially walks back, but the disclosure of what actually happens is unusually rich.

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?

The core action and status list are front-loaded, followed by sibling routing, consent requirements, and a rules pointer. It is longer than a 2-parameter tool normally warrants and repeats the publish warning, but nearly every sentence carries a safety-relevant distinction, so little is pure padding.

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?

An output schema exists, so return values need not be described, and the description still covers side effects, sibling routing, consent, and a prerequisite (read the content-contract skill doc first). Nothing an agent needs to call this destructively-correct is missing.

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?

Schema coverage is 100%, so the baseline is 3; the description goes beyond the schema by explaining restore semantics (returns the record with its prior status and address) and by cautioning that reverting status does not reverse crawling. It adds real meaning over the enum definitions rather than restating them.

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?

States a specific verb+resource ("Change a page/post/custom record's status") and enumerates all four enum values with plain-language definitions. It explicitly distinguishes this tool from save-content (creates/edits as drafts), delete-content (permanent removal), and list-content (finding trashed records), so an agent can separate it from siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use rules, names the alternatives for adjacent operations (save-content, delete-content, list-content), and adds a hard consent gate for "publish" and "trash" including a counter-example ("Finish this page" is not consent) and the verifying path (preview). This is as directive as usage guidance gets.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources