Skip to main content
Glama

elementor_page

Destructive

Read, replace, or create Elementor page layouts by managing the _elementor_data JSON element tree, with automatic CSS regeneration and diagnostic warnings for unrecognized widget settings.

Instructions

Read or write an Elementor page. Actions: get (return the _elementor_data element tree + template type), set (replace _elementor_data for a page — pass the element tree as data, an array of sections/containers), create (make a new Elementor-editable page with optional data). Elementor stores layout as a JSON tree of elements; build with flexbox Containers (elType "container"), not deprecated sections. After set/create, Elementor CSS is regenerated automatically. set/create return settings_warnings ONLY when something looked wrong: a diagnostic (non-blocking) list of settings keys that no control on that widget/element recognises — a likely wrong control name (e.g. menu instead of nav_menu), worth checking against get_controls() but never a reason to assume the write failed.

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>"
    },
    "name": "elementor_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoThe Elementor element tree (array of top-level elements). Each element: {id, elType, settings, elements}.
titleNoFor create.
actionYesget
statusNopublish
post_idNo
template_typeNoe.g. wp-page, wp-post, header, footer, single, archive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true; the description adds real behavior: set replaces _elementor_data wholesale, CSS is regenerated automatically after writes, and settings_warnings is a non-blocking diagnostic that should not be read as failure. It does not address permissions or whether a replaced tree is recoverable, which is the remaining gap for a destructive tool.

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 action list, then progressively deeper detail on data shape and the settings_warnings diagnostic. The final sentence is long and slightly convoluted, but every clause carries actionable information rather than restating the schema.

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 6-parameter read/write tool with no output schema and only a destructive hint, the description covers return shape for get, write side effects, and the warning channel. It is not fully complete on how post_id vs create interact or what status controls, but an agent could call every action 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?

With 50% schema coverage, the description compensates for the most important parameter by explaining `data` as an array of top-level elements built from Containers, and ties `template_type` to get's return. It says nothing about `post_id`, `status`, or how title interacts with the create path, so half the parameters still rely on terse schema text.

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?

Opens with a specific verb+resource ('Read or write an Elementor page') and then enumerates each action (get/set/create) with what it does and what it returns. An agent can distinguish the three modes without opening the schema.

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?

Explains what each action is for and gives concrete authoring guidance (build with flexbox Containers, not deprecated sections). It does not explicitly say when to prefer a sibling tool such as elementor_kit or elementor_settings, so it stops short of full alternative routing.

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