Skip to main content
Glama

Debug Container Layout

elementor_get_layout_debug
Read-onlyIdempotent

Inspect a container's flex settings and child width, direction, overflow, margin, and padding values, with mobile variants, in a compact table to debug layout and spacing issues.

Instructions

For a container element, show its flex layout settings and all children's layout properties (width, flex_direction, overflow, margin, padding + mobile variants) in a compact table format. Perfect for debugging flex layout, overflow, and spacing issues.

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

Input Schema

NameRequiredDescriptionDefault
postIdYesWordPress post/page ID
containerIdYesContainer element ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A3.6/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 the safety profile is covered. The description adds that output comes back as a compact table and lists the specific layout properties (including mobile variants), which is genuine added value, but it says nothing about what happens if the containerId is not a container or is missing.

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?

Two sentences, no filler, with the core behavior front-loaded before the use-case hint. Every clause contributes either scope or purpose.

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?

With no output schema, the description compensates by naming the returned properties and format, which is what an agent needs to interpret results. Minor gaps remain around failure behavior for non-container IDs, but for a two-parameter read-only debug tool this is close to sufficient.

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%, with both postId and containerId documented in the schema, so the baseline is 3. The description never references the required parameters at all, adding no meaning about formats, ID sources, or constraints beyond what the schema already supplies.

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 (show) and a specific resource (a container element's flex layout settings plus all children's layout properties), and enumerates the fields returned. It is clear what the tool does, but it does not distinguish itself from siblings like elementor_get_element or elementor_get_element_context, so the agent must guess at the boundary.

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?

The phrase 'Perfect for debugging flex layout, overflow, and spacing issues' implies when to use it, which is useful context. There is no explicit when-not guidance and no named alternative for situations where a plain element read would suffice, so routing between this and the other get_* tools is left to inference.

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