Skip to main content
Glama

Insert block

swebsy_insert_block

Insert a pre-built block from the catalog and optionally customize its content. STRONGLY preferred over generating from scratch when a matching block exists. The block re-themes on insert — its colour and font classes resolve against THIS site's theme, so the result is meant to differ from the catalog thumbnail (a screenshot of the block in the template it came from).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockIdYesThe block ID from the catalog (e.g., 'clarity-content-with-image').
positionNoWhere to insert. Defaults to 'end' if omitted. 'before-selected'/'after-selected' are measured against `targetPath` when you pass one, otherwise against the canvas selection — so pass `targetPath` with them unless the user has selected something.
targetPathNoZero-based component indexes from the current page root, exactly as returned by the most recent `read_page` call. The block lands as a sibling immediately before or after this component, per `position`. Ignored when `position` is 'start' or 'end'.
adaptationsNoStructured customizations applied to the block before insertion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not destructive, closed-world), so the bar is lower. The description adds genuinely non-obvious behavior: the block re-themes against the current site, so the result is expected to differ from the catalog thumbnail — a meaningful expectation-setter that prevents false bug reports.

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?

Three sentences, front-loaded with the action and the preference rule, then the theming caveat. Slightly long final sentence but every clause carries useful information.

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 should set expectations about the result, and it does so via the theming explanation. It omits what the call returns (e.g., new component path) and whether the insert is undoable, which are minor gaps for a page-mutating tool.

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%, including the nested adaptations object and its subfields, so the baseline is 3. The description only says content can be 'optionally customized' and adds no syntax or semantics beyond what the schema already documents.

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 and resource: insert a pre-built block from the catalog, with optional content customization. It also frames the alternative verb ('generating from scratch'), which helps agent selection, though no sibling tool is named explicitly.

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?

'STRONGLY preferred over generating from scratch when a matching block exists' gives clear, actionable selection guidance. It stops short of the obvious workflow prerequisite (e.g., using swebsy_list_blocks to find a matching block) or any when-not-to-use condition.

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