Skip to main content
Glama

swebsy_add_section

Insert a new section (hero, features, pricing, CTA) into the current page, appending at the end by default or placing it before/after a selected component.

Instructions

Insert a new section into the current page. Use for adding discrete sections (hero, features, pricing, CTA) to an existing page. Appends to the end by default; to place it somewhere specific, pass position plus the targetPath of the component to place it next to.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryYes1 sentence describing what this section does.
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.
componentYesThe section component to insert.
targetPathNoZero-based component indexes from the current page root, exactly as returned by the most recent `read_page` call. The new section lands as a sibling immediately before or after this component, per `position`. Ignored when `position` is 'start' or 'end'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the default append behavior and the positioning mechanism, which is useful. However, it does not mention side effects (e.g., whether the operation is undoable), prerequisites (like having a page open), or the nature of the mutation (persistent vs. temporary). For a mutation tool, this is a moderate disclosure but not comprehensive.

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?

The description is two sentences, front-loaded with the core purpose and followed by the key positioning caveat. Every word earns its place; no fluff or redundancy. It is efficiently structured for quick agent scanning.

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?

The tool has a complex nested `component` object, but the schema provides exhaustive descriptions for every property. The description covers the essential usage and placement semantics. It does not explain return values (no output schema) or preconditions beyond 'current page', but these are either implicit or adequately covered by the schema. It is complete enough for a tool of this complexity.

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?

Schema coverage is 100% (every parameter has a schema description), so the baseline is 3. The description adds value by explicitly tying `position` to `targetPath` ('pass `position` plus the `targetPath` of the component to place it next to'), clarifying the interaction beyond the schema's individual descriptions. It also explains the default for `position` (end) in plain language. This lifts it above baseline.

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 ('Insert') and resource ('a new section into the current page'), and clarifies the use case ('adding discrete sections (hero, features, pricing, CTA) to an existing page'). This distinguishes it from sibling tools like swebsy_insert_block (which likely targets blocks within a section) and swebsy_create_page (which creates a whole page). The scope is unambiguous.

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 explicitly says 'Use for adding discrete sections... to an existing page', which gives a clear when-to-use. It also explains the default behavior (appends to end) and how to position via `position` and `targetPath`. However, it does not explicitly name alternative tools for other scenarios (e.g., when to use insert_block instead), though the section focus implicitly separates it. This is clear but not exhaustive.

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