Skip to main content
Glama

Delete site page draft

delete_site_page
Destructive

Remove the selected route's draft page. Its published copy remains live until a separate publication removes it. Does not delete the site or other routes. Starts an asynchronous internal-agent operation; poll get_agent_session. For corrections, call this same tool with its sessionId and unchanged target. Requires a provisioned site. Source edits may execute in its preview. The Replo agent uses its normal tools and connected integrations to implement and verify the requested changes. Use publish_site separately to make changes public.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routeYesPage route within the selected site, such as / or /products/[handle].
siteIdYesSite ID from list_sites.
sessionIdNoOmit to start this operation. To continue, supply the returned sessionId with the same operation and target; mismatches and legacy sessions are rejected.
instructionsYesRequested changes for this operation only. Include necessary references, not conversation history, credentials, or unrelated personal data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this destructive and non-idempotent, and the description adds substantial context beyond them: the published copy stays live until a separate publication, sibling routes are untouched, the operation is asynchronous and must be polled via get_agent_session, source edits may execute in its preview, and the agent may use connected integrations. That is real behavioral disclosure, not a restatement of the hints.

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?

The critical constraints (what is removed, what survives, async polling) are front-loaded, which is good. However the tail sentence about the Replo agent using its normal tools and integrations is generic boilerplate that does not help an agent decide or invoke, and the description sprawls across eight sentences.

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 an async, destructive, session-based mutation with no output schema, the description covers everything needed: prerequisite (provisioned site), return-handling (poll get_agent_session), correction flow, blast radius, and the separate publish step. Nothing an agent needs to invoke 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?

Schema coverage is 100%, so baseline is 3, but the description adds usage semantics the schema only implies: the sessionId is for continuing/correcting an operation and must target the same route. The instructions parameter's content restrictions are already fully covered by the schema.

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 the selected route's draft page') and immediately bounds scope by negation: it does not delete the site or other routes, and it does not publish. An agent can separate this from edit_site_page, create_site_page, and publish_site without opening a schema.

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?

Gives explicit routing guidance: use publish_site separately to make changes public, requires a provisioned site, and describes the correction path (re-call with sessionId and unchanged target). It stops short of explicitly contrasting with edit_site_page for the 'change rather than remove' case, so no exclusion is 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