Skip to main content
Glama

Delete Element

elementor_delete_element
Destructive

Deletes an Elementor page element and all child elements, returning the parent container ID. Use for irreversible removal of unwanted elements from a WordPress page.

Instructions

Delete an element and all its children from a page. This is destructive and cannot be undone. Returns the parent container 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>",
      "elementId": "<elementId>"
    },
    "name": "elementor_delete_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesWordPress post/page ID
elementIdYesElement ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the description earns credit beyond that baseline by disclosing the cascade behavior (children are deleted too), the irreversibility, and the return value (parent container ID). It stops short of mentioning post-deletion side effects such as CSS/cache regeneration, which would be the remaining gap.

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 action and scope, followed by the risk and then the return value. Every sentence carries distinct information with no redundancy against annotations or 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 two-parameter destructive tool with no output schema, the description covers action, cascade scope, irreversibility, and return value. Only minor gaps remain, such as whether the page layout/CSS is recalculated or whether any permission constraint applies.

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% and both parameters (postId as WordPress post/page ID, elementId as the element to delete) are fully documented in the schema. The description adds no format, syntax, or constraint information beyond that, so the baseline 3 applies.

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 ('Delete an element') plus the crucial scope detail 'and all its children from a page'. No sibling performs deletion, so the operation is unambiguous against elementor_add_element, elementor_clone_element, or elementor_update_element without needing to open a schema.

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?

Usage is implied rather than stated: the warning that the operation is destructive and irreversible hints at caution, but there is no explicit guidance such as verifying the element via elementor_get_element first or noting when to move/update instead. An agent knows what the tool does but not the recommended preconditions.

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