Skip to main content
Glama
MCP WordPress CrunchTools

MCP WordPress CrunchTools

by crunchtools

Wordpress Edit Draft

wordpress_edit_draft

Replace exact text in a draft or pending WordPress post's source; refuses published or other statuses.

Instructions

Replace text in a draft or pending WordPress post's source. Refuses any other status.

Input Schema

NameRequiredDescriptionDefault
post_idYesPost ID of a draft or pending post
new_textYesReplacement text
old_textYesExact text from get_post's content to replace; must occur exactly once
replace_allNoReplace every occurrence instead of requiring exactly one
expected_versionNoRefuse the edit unless the post is still at this version (get_post)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries full burden: it discloses the status gate, which is genuinely useful. It says nothing about permissions, whether a revision is created, or whether the edit is reversible, and the exact-once matching rule lives only in the schema.

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 short sentences, front-loaded with the core action and followed by the constraint. No filler.

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?

Output schema exists and params are fully documented, so the remaining gap is behavioral: for an unannotated mutation tool, it would help to know that edits touch live post content and how conflicts are handled. The status restriction covers the most important selector, making this close to sufficient.

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 all five parameters including replace_all and expected_version are already documented. The description adds no syntax or format detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource: replace text in a draft or pending post's source. The status restriction helps separate it from wordpress_edit_post / wordpress_update_post, though it never names those siblings explicitly.

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?

Implies when it applies (draft or pending posts only) and adds a hard exclusion ('Refuses any other status'), but gives no positive routing instruction toward the sibling to use for published posts.

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