Skip to main content
Glama

Restore page

restore_page

Restore a deleted page and its child pages from the trash using the page UUID from list_trash; if the slug or parent changed, the page gets a new slug or returns at the space root.

Instructions

Bring a deleted page back from the trash, with the child pages that were deleted with it. Takes the page's UUID from list_trash: deleted pages can't be found by their path. If the slug was taken meanwhile the page gets a new one (slug_changed), and if its parent page is still deleted it comes back at the top level of its space (reparented_to_root).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page_id": "<page_id>"
    },
    "name": "restore_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesUUID of the deleted page, from list_trash

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing non-obvious behavior: child pages deleted with the page are restored too, the slug may be reassigned (slug_changed), and a still-deleted parent causes the page to return at space root (reparented_to_root). These are meaningful side effects an agent could not infer from readOnly/destructive/idempotent hints alone.

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?

A single dense but front-loaded sentence that wastes little; the parenthetical outcome labels are compact. Slightly cryptic to an uninitiated reader but functional.

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?

With one required parameter, no output schema, and annotations covering safety profile, the description is nearly complete. It names the edge-case outcomes (slug_changed, reparented_to_root) without explaining the response shape, but nothing essential for calling the tool is missing.

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 100% and the single parameter is already described as the deleted page UUID from list_trash. The description adds only the rationale that a path cannot be used, which is helpful but marginal beyond 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 ('Bring a deleted page back from the trash') and resource (page plus its deleted child pages), and the UUID-from-list_trash detail separates it from restore_page_version, which restores a version rather than a deleted page.

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 routes the agent to list_trash to obtain the UUID and rules out path lookup ('deleted pages can't be found by their path'). It does not spell out when not to use it or name an alternative for version recovery, so it falls just short of full when/when-not guidance.

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