Skip to main content
Glama

Replace page content

swebsy_replace_page_content
Destructive

Replace ALL top-level sections of the CURRENTLY SELECTED page with a generated list of components. This OVERWRITES the page — it does NOT create a new page (use create_page) and does NOT append a single section (use add_section). Use when the user asks to build/replace/redesign an entire page. Each top-level component should be wrapped in a container.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
planYesA 1-2 sentence summary of the sections you will create and why. This surfaces as an assistant message.
componentsYesTop-level page components (sections). Each should be wrapped in a container.

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 already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds meaningful context: it overwrites all top-level sections of the currently selected page and does not create or append, which clarifies the destructive scope. It stops short of stating irreversibility or undo behavior, so it is not fully complete.

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 front-loaded with the core action and scope, followed by explicit exclusions and alternatives. Every sentence earns its place by clarifying behavior or routing the agent, with no wasted text.

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?

Given the destructive mutation and the absence of an output schema, the description covers what is needed: the selected page is overwritten, no new page is created, no single section is appended, and sibling alternatives are named. The annotations already supply the safety profile, leaving no critical gaps for an agent to call this tool correctly.

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%, and both parameters (`plan`, `components`) are richly documented in the schema. The description adds only the repeated instruction that each top-level component should be wrapped in a container, which is already stated in the schema, so baseline 3 is appropriate.

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 gives a specific verb and resource: replace ALL top-level sections of the currently selected page with generated components. It explicitly distinguishes this tool from `create_page` and `add_section`, so an agent can identify the correct tool without opening sibling schemas.

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 exactly when to use the tool — when the user asks to build, replace, or redesign an entire page — and names the conditions that select alternatives (`create_page` for new pages, `add_section` for appending one section). No inference is required.

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