Skip to main content
Glama

Build an Elementor page from a spec

wp_el_build
Destructive

Converts a compact section/column/widget spec into Elementor data and writes it to a new or existing WordPress page; run dry-run first to preview changes.

Instructions

Convert a compact section/column/widget spec into Elementor data and (unless dry_run) write it. If post_id is omitted, a new page is created. Always inspect the dry_run output first. Widget settings use Elementor setting keys (e.g. heading: {title, header_size}; button: {text, link:{url}}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specYes
createNoCreate a new page when post_id is absent
confirmNoMust be "overwrite" when writing to an existing page
dry_runNo
post_idNoExisting page to overwrite

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known. The description adds useful workflow context (dry_run gate, dry_run-first advice), but never states what an overwrite actually destroys on an existing page or whether auth is needed, so it only partially earns credit beyond the annotations.

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 core action, followed by the dry_run gate, then post_id behavior, then setting-key examples. Every sentence is useful; only the widget-key examples edge toward verbosity.

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?

For a deeply nested 5-param tool with no output schema, the description covers the spec shape, the dry_run workflow, and new-vs-existing page selection. It is nearly complete, with only the destructive effect of overwriting an existing page and the return shape left implied.

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?

With 60% schema coverage, the description compensates well: it explains the spec's section/column/widget shape and gives concrete Elementor setting-key examples (heading {title, header_size}, button {text, link.url}), which the schema cannot convey. The post_id omission behavior is also clarified, though confirm='overwrite' is left to 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?

States a specific verb (convert spec into Elementor data) plus the conditional write behavior, and the resource is clearly an Elementor page. This distinguishes it from read/write siblings like wp_el_get and wp_el_set, though it does not explicitly name the closest sibling (wp_el_set) as an alternative.

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?

Gives clear operating context: the write only happens unless dry_run, post_id omission creates a new page, and it recommends always inspecting the dry_run output first. It lacks explicit when-not/alternative routing against wp_el_set or wp_content_create, so it stops short of full 5-level guidance.

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