Skip to main content
Glama

Bulk update content

bulk_update_content

Preview and apply bulk edits to WordPress content: change status, author, categories, or run find/replace across posts. Requires confirmation token to commit changes.

Instructions

Apply the same change to many items at once — set a status, reassign an author, add a category, or run a find/replace across bodies. Always previews first: the initial call reports exactly which items would change and how, and returns a confirm_token you must echo back to apply it. Nothing is written without that token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoContent type to operate on.post
limitNoHard ceiling on how many items can be touched in one call.
filterNoWhich items to act on. Without any filter this would match everything, so a limit always applies.
changesNoField changes applied to every matched item.
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.
confirm_tokenNoToken from the preview. Required to actually write.
content_editsNoFind/replace applied to each item's body. Items where nothing matches are skipped rather than failing the batch.
Behavior5/5

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

The description goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, etc.) by disclosing that the tool always previews first and requires a confirm_token to write anything, so no changes are applied without explicit confirmation. It also reveals that find/replace entries that don't match are skipped rather than aborting the batch. These are important behavioral traits not present in the schema or annotations, greatly aiding correct usage.

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 zero fluff. The first sentence establishes the purpose and examples; the second immediately covers the critical preview/confirm behavior. All information is 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.

Completeness4/5

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

Given the tool's complexity (7 parameters, nested filter/changes/content_edits objects) and the absence of an output schema, the description covers the essential workflow and a key nuance (skipping non-matching finds). The schema handles parameter details comprehensively. It doesn't describe the preview response structure, but that's a minor gap; the description is sufficient for correct invocation.

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 every parameter is already documented. The description adds workflow-level context (the two-step preview/confirm flow) that clarifies the confirm_token's role beyond the schema's brief 'Token from the preview', and explains the skip-on-non-match behavior for content_edits. This enriches understanding but doesn't redefine individual parameter meanings, making a 4 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?

The description opens with a specific verb ('Apply'), a clear resource ('many items'), and enumerates concrete change examples (status, reassign author, add category, find/replace). It explicitly distinguishes from single-item tools by emphasizing 'many items at once', making the tool's niche unambiguous even without naming siblings like update_content.

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 explains the preview-first, confirm-token workflow, which is a critical usage guideline that dictates the calling sequence. It implicitly contrasts with single-item update tools by targeting bulk edits, but it doesn't explicitly name alternatives or state when NOT to use it. The guidance is clear enough for an agent to follow the correct two-step invocation.

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

Install Server

Other Tools

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/alokemajumder/wpxmcp'

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