Skip to main content
Glama

Get Page Element Tree

elementor_get_page_tree
Read-onlyIdempotent

Retrieve a page’s Elementor element hierarchy, including element IDs, widget types, content labels, and container layout details, to inspect and understand page structure before editing.

Instructions

Get the element hierarchy tree for a page. Shows element types, IDs, widget types, content labels, and layout info (flex_direction, width, overflow, gap) on container nodes. Essential for understanding page structure.

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

Input Schema

NameRequiredDescriptionDefault
postIdYesWordPress post/page ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds real value by specifying which fields appear on nodes and that layout info is attached to container nodes, but says nothing about tree depth, output size on large pages, or how missing/empty containers appear.

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 and followed by the returned fields. Little waste, though the closing "Essential for understanding page structure" is more promotional than informative.

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 one-parameter read-only tool with no output schema, the description does the heavy lifting by enumerating what the tree contains. Remaining gaps — nesting depth, size/truncation behavior for large pages — are minor but real for an agent reasoning about output volume.

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?

There is a single parameter (postId) with 100% schema description coverage, so the schema fully documents it. The description adds no meaning beyond that — no note on whether the ID must be a page versus a template, or behavior for invalid IDs. Baseline 3 is appropriate when the schema does the work.

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 ("Get the element hierarchy tree for a page") and enumerates the node data returned (element types, IDs, widget types, content labels, layout info). It does not, however, distinguish this from sibling readers like elementor_get_element or elementor_find_elements, so an agent must infer the boundary itself.

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?

"Essential for understanding page structure" implies a when-to-use context (structural reconnaissance), but there are no explicit conditions, exclusions, or named alternatives. An agent learns the tool's role but not when to prefer elementor_get_element or elementor_get_layout_debug instead.

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