Skip to main content
Glama

Add Element

elementor_add_element

Insert a new container or widget into a target Elementor container at a specified position, creating it with initial settings and returning the new element ID.

Instructions

Add a new element (container or widget) into a target container. Creates the element with specified settings and inserts at the given position. Returns the new element's auto-generated ID.

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": {
      "postId": "<postId>",
      "containerId": "<containerId>",
      "elType": "<elType>"
    },
    "name": "elementor_add_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
elTypeYesElement type: 'container' for layout, 'widget' for content
postIdYesWordPress post/page ID
positionNoInsert position (0-based index). Omit to append at end.
settingsNoInitial settings for the new element
widgetTypeNoWidget type (required when elType='widget'). E.g. heading, text-editor, image, html, button, video
containerIdYesTarget container element ID to insert into

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the description only needs to add context. It does add the return value ('the new element's auto-generated ID'), which matters because there is no output schema, but it says nothing about failure modes (invalid containerId, unknown widgetType) or that repeated calls create duplicate elements despite non-idempotency.

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?

Three short sentences, front-loaded with the core action, with the creation/insertion mechanics and return value following. Nothing is redundant, though the parenthetical '(container or widget)' duplicates the elType enum already in 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?

Covers the operation, insertion semantics, and the returned ID, which compensates for the absent output schema. The main remaining gap is the free-form nested 'settings' object, whose valid keys are undocumented in both schema and description, but that is a schema limitation more than a description failure.

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 100%, so the schema already documents elType, widgetType, postId, containerId, position, and settings. The description only echoes 'specified settings' and 'the given position' without adding format, constraints, or examples beyond what the schema provides.

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 and resource ('Add a new element (container or widget) into a target container') plus the effect of the call ('creates... inserts at the given position'). It is clearly distinguishable from elementor_update_element, elementor_move_element, and elementor_clone_element by the word 'new', though no sibling is named explicitly.

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?

Usage is only implied by the word 'Add' – there is no statement of when to prefer this over elementor_clone_element (duplicate an existing one) or elementor_move_element (relocate an existing one), and no prerequisites such as needing a valid postId/containerId or an existing page tree.

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