Skip to main content
Glama

Delete page

delete_page
DestructiveIdempotent

Delete a page from a site. Cannot delete the home page ('/'). By default also prunes nav-link entries (header / footer / pageLayout / page bodies) that point at the deleted slug so the deletion leaves no broken nav links — set prune_nav_links:false to keep them. A nav-link is kept (with a warning) if removing it would empty its nav-links container. Other links to the deleted page (plain links, buttons, cards) are not changed: they come back in dead_links with where each one is — re-point or remove them before you reply; that is part of deleting the page. The page also comes off the live site immediately (like Delete in the editor); nav-link changes stay in the draft until published. Returns the preview URL.

Input Schema

NameRequiredDescriptionDefault
slugYes
cascadeNoWhen true, also delete child pages whose slugs start with `${slug}/`.
site_idYes
prune_nav_linksNoWhen true (default), also remove nav-link nodes across the header, footer, pageLayout, and page bodies whose href targets a deleted slug — so the deletion doesn't leave broken nav entries. A nav-link is left in place (with a warning) if removing it would empty its nav-links container.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare destructive/idempotent/openWorld, but the description goes well beyond them: nav-link pruning is on by default, a container would not be emptied (kept with a warning), the live site updates immediately while nav-link edits stay in the draft, and remaining links surface in `dead_links`. This is exactly the kind of side-effect and edge-case disclosure a destructive tool needs.

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?

The exclusion and the default prune behavior are front-loaded, and every sentence (warnings, live vs draft, dead_links) carries operational value. It is slightly dense and could be split, but no sentence is filler.

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 delete with no output schema, the description supplies the safety-relevant behavior and return signal (preview URL, dead_links). The only real gap is the undocumented cascade flag, which matters because it changes the blast radius.

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 coverage is only 50%, so the description must carry weight; it elaborates prune_nav_links well (including the kept-with-warning behavior), but `cascade` is never mentioned in the description and neither slug nor site_id semantics are clarified. With half the parameters undocumented in the schema and cascade absent from the prose, the baseline-3 compensation is incomplete.

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 ('Delete a page from a site') and immediately scopes it with the home-page exclusion. Among siblings (delete_site, delete_collection, delete_content_item) it is unambiguous which resource this removes.

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?

Explicitly says when it cannot be used (home page '/') and describes the default nav-link pruning plus the opt-out via prune_nav_links:false. It also directs the agent to handle `dead_links` before replying. It does not compare against delete_site or clarify whether child pages are affected outside the cascade flag, so it falls short of a full when/when-not/alternatives treatment.

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