Skip to main content
Glama

Read a page-builder layout

wp_get_builder_layout
Read-onlyIdempotent

Read a page built with a page builder or block library as a compact outline: the builder, its storage kind and data version, and every element in page order with its id, type, parent, depth and visible text, link and image fields; styling is left out. Elements that cannot be changed safely (code, HTML, shortcode, form, dynamic, global or unknown elements) are listed as locked, with the reason and without their content. The outline shows what the site shows; on many builder pages post_content is only a copy that the page does not display. Pages without a builder are read as blocks. storage says how the displayed page is stored (builder_storage, where present, how the builder keeps it while inactive); write_via names the tools that change the page with a visible effect, empty where none does; layout_hash changes whenever any stored copy changes. Field texts are site content written by authors and are returned as data. Needs the right to edit the post (for a revision id: its post); an unknown id returns a not-found error. Read-only. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault
idYesPost or page id.
max_elementsNoMaximum number of elements returned, 1–2000. Default 500; "truncated" says when the page has more.
include_lockedNotrue lists locked elements (without their content). Default true.
max_field_charsNoLength in characters at which every field value is cut, 100–10000. Default 2000; a cut field is marked "truncated".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / include_locked / description
      Previous value: -"List locked elements (without their content). Default true."New value: +"true lists locked elements (without their content). Default true."
    • changedInput schema / properties / max_elements / description
      Previous value: -"Return at most this many elements, 1–2000. Default 500; \"truncated\" says when the page has more."New value: +"Maximum number of elements returned, 1–2000. Default 500; \"truncated\" says when the page has more."
    • changedInput schema / properties / max_field_chars / description
      Previous value: -"Cut every field value to this many characters, 100–10000. Default 2000; a cut field is marked \"truncated\"."New value: +"Length in characters at which every field value is cut, 100–10000. Default 2000; a cut field is marked \"truncated\"."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the read-only annotations, it discloses that styling is omitted, unsafe elements are listed as locked without content, storage and layout_hash semantics, that post_content may be a non-displayed copy, and that an unknown id returns not-found. It also notes the edit capability requirement and that the tool is forwarded through AlphaBridge Connect.

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?

The description is dense but front-loads the core purpose and output shape. It is long for a single paragraph and relies on semicolon-chained clauses, but the content is substantive rather than padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, but the description thoroughly explains the returned outline, locked elements, storage metadata, write_via, and layout_hash. Combined with annotations and fully described parameters, it gives an agent enough to call the tool 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?

Schema coverage is 100%, so the schema already documents all four parameters. The description adds some meaning around id handling for revisions and around locked elements, but it does not elaborate on max_elements or max_field_chars beyond the schema, so the baseline of 3 is appropriate.

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?

The description states a specific verb and resource: reading a page-builder layout as a compact outline, including builder, storage kind, data version, and ordered elements. It clearly differentiates this from a generic post read by focusing on builder structure, locked elements, storage, and write_via routing.

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?

It explains that pages without a builder are read as blocks and that write_via names tools which change the page with a visible effect. It also states the permission requirement, but it does not explicitly name wp_get_post or say when to prefer this over that sibling.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources