Skip to main content
Glama
WordPress Author MCP Server
by aaronsb

block-editor

Edit WordPress content as blocks by listing, reading, inserting, updating, deleting, reordering, and validating block markup written as clean HTML.

Instructions

[CONTRIBUTOR] [Block Editor] Edit content using WordPress blocks. Write clean HTML - most AI-generated HTML passes validation easily. Content is stored as simple block comments: Your content. TROUBLESHOOTING: If sync fails with "Cannot create property on string", use individual parameters (level: 2) instead of attributes objects. If validation fails, read the block first to inspect its current state.

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": {
      "action": "<action>",
      "documentHandle": "<documentHandle>"
    },
    "name": "block-editor"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoBlock type (for insert)
alignNoBlock alignment
levelNoHeading level (1-6) for heading blocks
actionYesBlock editing action to perform
blocksNoSpecific blocks to validate
filterNoFilters for list action
blockIdNoBlock ID
contentNoBlock content as clean HTML. Example: For headings use <h2>My Title</h2>, for paragraphs use <p>My text</p>, for lists use <ul><li>Item</li></ul>. Most AI-written HTML works perfectly.
orderedNoTrue for numbered lists, false for bullet lists
positionNoPosition for insert/reorder
attributesNoBlock attributes (advanced use only - prefer individual parameters like level, ordered, align)
newPositionNoNew position for reorder
documentHandleYesDocument handle from pull-for-editing
validateImmediatelyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It usefully explains the block-comment storage format and gives error-handling tips, but it does not disclose destructive behavior for delete/reorder, permission requirements, or side effects for the seven actions.

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 description is front-loaded with the purpose and content format, and the troubleshooting section is useful. The contributor tags and the claim that most AI-generated HTML passes validation easily are mild noise, but the overall structure remains clear.

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?

For a 14-parameter tool with seven actions, no annotations, and no output schema, the description covers the core content format and common errors. However, it omits action-specific behavior for list, read, delete, reorder, and validate, and does not describe return values or destructive consequences.

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 description coverage is 93%, so the schema already documents most parameters. The description adds actionable meaning by advising individual parameters like level and ordered over the attributes object when sync fails, and by giving HTML content examples.

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 states a specific verb and resource: editing content using WordPress blocks. It is clear enough to distinguish block editing from general content management, but it does not explicitly differentiate itself from the sibling tools.

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

Usage Guidelines2/5

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

The description provides troubleshooting conditions for sync and validation failures, but it gives no explicit guidance on when to use this tool versus alternatives such as content-management or publishing-workflow. The agent must infer usage from the WordPress blocks context.

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