Skip to main content
Glama

Write raw Elementor data

wp_el_set
Destructive

Overwrite a page's entire Elementor tree with valid JSON, snapshotting the previous tree first. Requires confirm="overwrite".

Instructions

Replace the whole Elementor tree for a page. Use wp_el_build for authored pages and this only when you already have valid Elementor JSON. Snapshots the previous tree automatically. Requires confirm:"overwrite".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesArray tree or JSON string
confirmYesMust be "overwrite"
post_idYes
snapshotNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/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 still adds real behavioral context — that the previous tree is snapshotted automatically and that a confirm:"overwrite" token is gated in — which is more than the annotations alone convey. It stops short of saying how to recover or whether the snapshot is prunable.

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-loaded with the destructive replace, then the alternative, then the constraints. Every sentence earns its place and nothing is padded.

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 destructive, no-output-schema write tool, the definition covers purpose, alternative, gating token, and the safety net. Missing only recovery pointers (wp_el_restore / wp_el_snapshots) that would fully close the loop on an overwrite operation.

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 50%, so the description has to carry some weight, and it does: it explains the exact confirm value and reveals the automatic snapshot behavior behind the snapshot parameter, plus frames what data must contain (valid Elementor JSON). post_id is left unexplained, but that is self-evident.

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?

States a specific verb and resource: "Replace the whole Elementor tree for a page." It also implicitly distinguishes itself from wp_el_build by naming it and by scoping the tool to already-valid Elementor JSON, so an agent can tell the two apart without opening schemas.

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

Usage Guidelines5/5

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

Explicitly routes the agent: "Use wp_el_build for authored pages and this only when you already have valid Elementor JSON." That is a clear when-to-use plus a named alternative, leaving almost nothing to inference.

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