Skip to main content
Glama

Change the status of many posts

wp_bulk_update_status
Destructive

Change the status of many posts at once by id list (posts, pages, other post types and media files alike) to publish, draft, pending, private or trash; at most 500 ids per call (over_limit counts the rest, which are not touched). Suited to batches; one post's status and other fields change with wp_update_post. Unknown ids are skipped, posts already in the status are left as they are and an id given twice counts once, so a repeated call changes nothing more, except where WordPress stores another form than asked (stored_as below): those posts are written again. Publishing makes posts public at once. On a site without a trash, "trash" is refused, since WordPress would delete for good. A media file set to draft, pending or publish becomes "inherit" (shown wherever its parent is published, everywhere without one), which needs the right to publish. Returns updated (the count); ids, the posts that have the status now, with stored_as where WordPress stores a form of its own ("future" for a post dated ahead, "inherit" for a file); failed, each with the status it has (null if unreadable) and, where telling, an error: update_failed, trash_refused or untrash_refused (refused by WordPress or a plugin), unreadable (nothing written) or unverified (written, not readable back); forbidden, the posts the account may not change (edit right per post, delete right for trash). failed and forbidden list 100 each; failed_omitted and forbidden_omitted count the rest. undo is the token of an undo point with the previous statuses, for wp_undo (null when none was recorded). A call begins no further post once the request has run 60 seconds (the first post is always handled, and one already begun is finished), so a long list is answered in parts; remaining lists the ids it did not reach, in their order (empty when it reached all), and those ids, sent in a further call, continue where it stopped, with an undo point of their own. Needs edit_others_posts. Forwarded by AlphaBridge Connect to the one site this connection reaches.

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": {
      "ids": "<ids>",
      "status": "<status>"
    },
    "name": "wp_bulk_update_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesPost ids (integers) of any post type. An id given twice counts once; ids beyond the first 500 are not touched, nor those a call does not reach in its time (remaining).
statusYesTarget status: publish, draft, pending, private or trash; any other value is refused and nothing changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ids / description
      Previous value: -"Post ids (integers) of any post type. An id given twice counts once; ids beyond the first 500 are not touched."New value: +"Post ids (integers) of any post type. An id given twice counts once; ids beyond the first 500 are not touched, nor those a call does not reach in its time (remaining)."
  2. Changed2 schema fields changed
    • changedInput schema / properties / ids / description
      Previous value: -"Array of post ids."New value: +"Post ids (integers) of any post type. An id given twice counts once; ids beyond the first 500 are not touched."
    • changedInput schema / properties / status / description
      Previous value: -"publish, draft, pending, private, trash."New value: +"Target status: publish, draft, pending, private or trash; any other value is refused and nothing changes."
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds what the annotations convey: it discloses the destructive edge case (trash refused on a trash-less site because WordPress would hard-delete), partial execution after 60 seconds with per-call continuation, idempotency nuances around duplicate ids, undo token generation, and the exact return fields (updated, ids, stored_as, failed, forbidden, undo, remaining). Annotations only flag destructive/not-readOnly, so this detail is genuinely additive.

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?

Front-loaded with the essential verb, target statuses and the 500-id cap, and virtually every sentence carries distinct information. The middle is a long undifferentiated block covering return semantics; with no output schema that content is necessary, but bullets or sentence breaks would improve scanability.

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 destructive bulk mutation with no output schema and no annotation-level detail, the description covers permissions, limits, partial-failure semantics, return shape, and undo — everything an agent needs to call it safely and interpret the result. No significant gaps remain.

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% and the schema already documents both parameters, including duplicate-id and 500-id semantics that the description restates nearly verbatim. Extra value is limited to behavioral notes (status 'trash' being refused, media files resolving to 'inherit'), which are more behavioral than per-parameter. Baseline 3 is appropriate.

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 and resource (change status of many posts) plus precise scope: id list, any post type or media, allowed target statuses, 500-id cap. It explicitly differentiates from the sibling wp_update_post (single post, other fields), so an agent can pick correctly without opening either 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?

Names the alternative (wp_update_post for one post's status and other fields) and the condition that selects it ('Suited to batches'), states the required capability (edit_others_posts, per-post edit right, delete right for trash), and explains the resume path via 'remaining' for long lists. Explicit when-to-use and when-not, plus alternatives.

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