bricks_get_site_context
Overview
Returns comprehensive WordPress and Bricks site information in a single call. This is the first tool you should call when connecting to any site, as it provides the full context needed to make informed decisions about what tools and features are available.
The response includes WordPress version, Bricks version, active theme, registered post types and taxonomies, active plugins, template counts, breakpoint definitions, global class count, component count, and color palette count.
Key Features
When to Use
Check which Bricks version is installed to know available features
Discover registered custom post types and taxonomies
Verify which plugins are active (ACF, WooCommerce, etc.)
Get breakpoint widths for responsive design planning
When NOT to Use
When you only need specific information like colors or classes — use dedicated tools instead
Parameters
(none)noneoptionalCode Examples
Warning: Undefined array key "example_output" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 12
Phase 1: Read Site Context
Always the first call in any workflow. Returns comprehensive site information including WP/Bricks versions, post types, plugins, breakpoints, and design system counts.
bricks_get_site_context()Common Mistakes
Warning: Undefined array key "fix_description" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 47
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-includes/kses.php on line 1935
Warning: Undefined array key "wrong_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 48
Warning: Undefined array key "right_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 49
Warning: Undefined array key "fix_description" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 47
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-includes/kses.php on line 1935
Warning: Undefined array key "wrong_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 48
Warning: Undefined array key "right_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 49
Tips & Warnings
Phase 1 Essential: This tool is step 1 of the 7-step Phase 1 workflow. After calling it, proceed to bricks_list_pages, bricks_get_color_palette, bricks_get_global_classes, bricks_get_global_variables, bricks_get_theme_styles, and bricks_get_breakpoints to complete Phase 1.
Version awareness: Check the Bricks version returned — features like Style Manager (v2.2+), global queries (v2.1+), and filter queries require specific minimum versions.