Skip to main content
Glama

Store Manager for WooCommerce

AddSynapse: draft a page, header, footer or template edit

plan_blocks_edit

AddSynapse: Prepare a DRAFT of changes to the blocks of ONE document — a page, post or synced pattern (page_id), a block-theme template (template = slug: single-product, archive-product, page, single, home, index…) or template part (template_part = slug: header, footer…), or the homepage (front_page) — (Undo restores the exact previous version; a theme template customised by Approve goes back to the theme's own version on Undo). Read the document with describe_blocks first and use its block ids (valid for every operation of the same plan). operations (1–20, in order): set_attrs {block, attrs}: merge block attributes (null removes) — colors textColor/backgroundColor (palette slugs) or style.color.text/background (CSS colors), fontSize/fontFamily (slugs) or style.typography.* (fontSize, fontWeight, lineHeight, letterSpacing, textTransform), style.spacing.padding/margin {top,right,bottom,left} (2rem, 24px or var:preset|spacing|50), style.border (radius, width, color), style.dimensions.minHeight, align (wide|full), textAlign, className, layout {type, justifyContent, contentSize}, heading level, column width, cover dimRatio/overlayColor/customOverlayColor/minHeight, and ANY attribute of dynamic blocks (site logo width, navigation overlayMenu, query, product blocks…); set_text {block, text}: paragraph/heading/list item/verse (inline HTML: strong, em, a, br, span) or a button label; set_link {block, url}; set_image {block, image_id (media library), alt}: image, cover, media & text; insert {where before|after|inside_first|inside_last|top|bottom, anchor (block id; not for top/bottom), and ONE of: blocks (structured, preferred — [{name, attrs, text, url, image_id, alt, inner[]}] for core/group, columns, column, heading, paragraph, list, list-item, buttons, button, image, cover, spacer, separator, quote: the site writes the exact markup the block editor expects), pattern (a registered pattern name from describe_site_design), synced_pattern (an id), markup (complete serialized block markup, only for other blocks)}; replace {block, blocks | pattern | markup}; move {block, where, anchor}; duplicate {block}; remove {block}. Images only from the media library; no scripts, styles or iframes. Site-wide colors/fonts/spacing → plan_global_styles; site title, tagline, logo and classic-theme options → plan_theme_settings; Elementor content → plan_elementor_edit. Changes nothing by itself: a preview card with the before → after list and an Approve button appears in the chat; nothing changes on the site until the user presses Approve there, and every applied change can be undone exactly. Before calling it, say in plain words what will change and get the user's agreement. Put every edit of this request in ONE call (up to 20 operations on this document) — the user approves them together with one click and can undo them together; never one call per item.

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": {
      "operations": "<operations>"
    },
    "name": "plan_blocks_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoWhich connected site: its address or site_id from addsynapse_list_sites. Omit when the account has only one site.
page_idNo
templateNo
front_pageNo
operationsYes
template_partNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only say it is a non-read-only, non-destructive, non-idempotent mutation. The description adds the crucial behavioral fact that nothing is applied until the user presses Approve, plus exact undo semantics including the theme-template revert-to-theme-version edge case, and content constraints (no scripts, styles or iframes; images only from the media library).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Almost every clause carries information and the purpose is front-loaded, but the body is one enormous run-on sentence riddled with nested parentheses and em-dashes, which makes it hard to parse for an agent scanning the definition. Length is defensible for a 20-operation schema; the density and lack of structure are not.

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?

For a complex, high-stakes mutation tool with no output schema, the description covers the draft/approve lifecycle, undo guarantees, document targeting, per-operation payload rules, sibling routing and batching expectations. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 17%, the description carries most of the load and does so well: it defines the nine operation types and their payloads, what block ids mean and their validity scope, palette-slug vs CSS-color conventions, spacing formats, and which block types accept structured `blocks` vs `markup`. A few limits (string lengths, the 20-item caps already in the schema) are left implicit, so it stops short of a 5.

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 ("Prepare a DRAFT of changes to the blocks of ONE document") and then enumerates the four document targets (page_id, template slug, template_part slug, front_page). It also explicitly contrasts with plan_global_styles, plan_theme_settings and plan_elementor_edit, so an agent can distinguish it from siblings without opening any schema.

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?

It states prerequisites ("Read the document with describe_blocks first"), the human-in-the-loop requirement ("say in plain words what will change and get the user's agreement"), batching guidance ("Put every edit of this request in ONE call ... never one call per item"), and explicit alternative routing for site-wide styles, theme settings and Elementor content.

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