Skip to main content
Glama

bricks_update_page

Update a WordPress page's Bricks Builder content. Saves elements with JSON validation, automatic backup, and optimistic locking to prevent overwrites.

Instructions

Update the Bricks Builder data for a page. Automatically creates a backup before writing. Validates the JSON structure before saving. Supports optimistic locking via content_hash. Use content_area to write header or footer template data. THEME-FIRST: before generating elements, call bricks_get_theme_styles and bricks_list_global_classes — reuse existing tokens (button styles, utility classes, color palette) instead of inline styling. For buttons prefer settings.style: "primary"|"secondary" over manual _background/_typography. For links use the text-link element, not a styled text-basic. Use _cssCustom only for what settings cannot express.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesWordPress page/post ID
bricks_dataYesArray of Bricks elements to save
content_areaNoWhich content area to write (default: content). Use header/footer to manage template elements.content
content_hashNoContent hash from bricks_get_page for optimistic locking. If provided, update fails with 409 if page was modified since read.
Behavior4/5

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

Discloses automatic backup creation, JSON validation, optimistic locking via content_hash, and content_area usage. However, it does not specify failure modes (e.g., if backup fails), permissions needed, or response format. With no annotations, the description carries full burden and provides substantial context.

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 concise paragraphs: first covers core functionality and features, second provides actionable best practices. No redundant sentences; every part adds value.

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?

Given 4 parameters, no output schema, and no annotations, the description covers purpose, key behaviors, and usage guidelines. It is missing explicit return value or error scenarios, but overall well-rounded for effective tool selection.

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?

All 4 parameters are described in the schema (100% coverage). The description adds contextual hints (e.g., content_area for header/footer, content_hash for optimistic locking). It does not elaborate on the structure of bricks_data elements, but schema already describes it.

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 clearly states it updates Bricks Builder data for a page, with specific actions (backup, validation, optimistic locking). It distinguishes from siblings like bricks_create_page and bricks_patch_page by mentioning content_area for header/footer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit 'THEME-FIRST' best practices, recommending when to call bricks_get_theme_styles and bricks_list_global_classes, and specific element preferences. This guides the agent on when and how to use the tool correctly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/developer2013/bricks-mcp-open'

If you have feedback or need assistance with the MCP directory API, please join our Discord server