Skip to main content
Glama

Delete page

delete_page

Remove a page or tab from the current diagram by ID, name, or index. It blocks deleting the last remaining page so the editor keeps at least one tab.

Instructions

Delete a page (tab) from the current diagram. At least one of page_id / page_name / page_index is required. Refuses to delete the last remaining page — the editor needs at least one tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idNoTarget a page by its id (as returned by list_pages or add_page). Wins over page_name and page_index when multiple are set.
page_nameNoTarget a page by its display name (e.g. "CNN"). Used only when page_id is not set.
page_indexNoTarget a page by its 0-based tab index. Used only when page_id and page_name are not set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations only declare openWorldHint=false, so the description carries the behavioral burden. It usefully discloses the guard rail ('refuses to delete the last remaining page'), which the annotations do not cover, but says nothing about irreversibility, confirmation, or what happens to page contents — significant gaps for a destructive operation.

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 action, then the requirement, then the constraint. No wasted text.

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 simple no-output-schema delete tool, the description covers targeting and the key refusal condition. It leaves out what the call returns and whether deletion is reversible, which for a destructive tool leaves a small gap.

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 description coverage is 100%, so precedence rules are already documented in the schema (baseline 3). The description adds one thing the schema lacks — that at least one identifier is required (required parameters = 0 in the schema) — which is a genuine value-add.

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 (tab) from the current diagram') and clarifies the resource is a tab, which distinguishes it from siblings like rename_page, add_page and list_pages.

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 clear operating conditions: at least one of page_id/page_name/page_index is required, and deletion is refused when only one page remains. It does not explicitly route the agent among alternatives (rename_page, add_page), but the preconditions are stated precisely.

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