Skip to main content
Glama

Delete section

swebsy_delete_section
Destructive

Remove a component from the current page entirely. Use this instead of emptying a section's contents — an emptied section leaves a stray blank div on the page. Deletes the selected component by default; pass targetPath (from read_page) to delete a component you did not select.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryYes1 sentence naming what is being removed.
targetPathNoZero-based component indexes from the current page root, exactly as returned by the most recent `read_page` call. Omit to delete the selected component.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's job is to add context, and it does: it explains the concrete side effect avoided (a stray blank div left behind by emptying) and that the default target is the currently selected component. It does not mention whether the deletion is undoable, which is the one behavioral fact an agent might still want, but the destructive profile is well covered by annotations.

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?

Three short sentences, front-loaded with the core action, then the key usage contrast, then the parameter nuance. No filler or repetition beyond what is needed.

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?

For a destructive, no-output-schema mutation tool this covers the essentials: what is destroyed, the default selection scope, and how to target something else. The only material omission is reversibility/undo behavior, which matters for a destructive operation and is not addressed in the description or annotations.

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%, so both parameters are already documented, including the 'omit to delete the selected component' default and the 'from the most recent read_page call' provenance of targetPath. The description restates those facts rather than adding new syntax, ordering, or format meaning, so the baseline 3 applies.

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?

States a specific verb and resource ('Remove a component from the current page entirely') and distinguishes itself from neighboring deletion tools by scoping to the current page and to sections/components rather than pages or symbols. The contrast with 'emptying a section's contents' further pins down what this operation is and is not.

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?

Explicitly tells the agent when to use this tool over a tempting alternative ('Use this instead of emptying a section's contents — an emptied section leaves a stray blank div on the page'), and routes the agent to `read_page` when it needs a `targetPath` for a non-selected component. Both the default path and the alternate path are stated.

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