Skip to main content
Glama

wp_create_widget

Create a WordPress block widget by providing either block content or a structured ad creative. Includes dry-run preview and automatic cache purge.

Instructions

Create a block widget. Supply exactly one of block_content or structured ad_creative. Supports dry-run and automatic cache purge when available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview changes without writing
sidebarYes
auto_purgeNo
ad_creativeNo
block_contentNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses dry-run support and automatic cache purge, which are meaningful behavioral traits beyond a bare 'create.' However, it does not disclose success/return behavior, required sidebar context, or what happens when neither block_content nor ad_creative is supplied.

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?

Three short sentences front-load the purpose, then state the critical one-of constraint, then mention supported behaviors. There is no filler, repetition, or unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

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

There are no annotations and no output schema, while the tool has a nested ad_creative object and several parameters. The description gives useful hints but omits required sidebar context, expected return value, and enough detail to confidently construct ad_creative or block_content. An agent would need to consult external knowledge to call this correctly.

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 low (20%), so the description must compensate. It adds the important exactly-one-of constraint and flags ad_creative as structured, which is not fully encoded in the schema. But it leaves sidebar, block_content format, and ad_creative subfields to be inferred from the schema.

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: 'Create a block widget.' This clearly differentiates it from widget update/get/delete/move siblings. It does not explicitly contrast with wp_blocks_insert or block-content tools, so differentiation is somewhat implied rather than fully explicit.

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?

The description implies use when creating a new block widget and clarifies the one-of block_content/ad_creative input constraint. However, it gives no explicit guidance on when to prefer this tool over alternatives like wp_update_widget or wp_blocks_insert, and it lacks any when-not-to-use guidance.

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

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/leonardobora/mcp-wordpress'

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