Skip to main content
Glama
notion-full-mcp
by cphoskins

restore_page_from_snapshot

Destructive

Restore a Notion page from a saved snapshot by replacing its content safely; blocks Notion cannot recreate are preserved, so failed restores leave the page unchanged.

Instructions

Restore a page from a previously saved snapshot.

Replaces the page's content with the snapshot. The snapshot is written first and the previous blocks are removed only after that succeeds, so a failed restore leaves the page as it was.

Blocks the API cannot recreate (subpages, inline databases, Notion-hosted files) are never deleted. For each one in the snapshot:

  • Still on the page: left untouched, with the restored content written around it in snapshot order (preserved). If it was moved so the order cannot be kept, it stays put (out_of_order).

  • Saved with the snapshot (include_files): uploaded again in place (uploaded).

  • In Notion's trash (about 30 days): brought back, at the end of the page (restored_from_trash).

  • Otherwise it cannot be restored (skipped).

Args: page_id: The page to restore into. snapshot_path: Path to the snapshot JSON file.

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>",
      "snapshot_path": "<snapshot_path>"
    },
    "name": "restore_page_from_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYes
snapshot_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description discloses that the snapshot is written first and old blocks removed only on success, so a failed restore is a no-op. It then enumerates exactly which block types survive and under which outcome label (preserved, out_of_order, uploaded, restored_from_trash, skipped), which is precisely the mutation-detail an agent needs before calling a destructive tool.

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 atomicity guarantee is front-loaded in the first two sentences, then the block-outcome rules are broken into a scannable bullet list. Slightly verbose, but each bullet encodes a distinct outcome an agent could encounter, so the length is largely earned.

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, open-world mutation with an output schema, the definition covers failure semantics, preservation rules, and outcome states thoroughly. The remaining gap is operational context: where a valid snapshot_path comes from, whether the snapshot file must be local, and any permission prerequisites.

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 0%, so the description carries the burden, and its Args block only briefly clarifies that page_id is the destination and snapshot_path is a path to the snapshot JSON file. That adds real meaning (a local file path, not an ID), but neither parameter's expected format, source, or constraints are spelled out.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ('Restore a page') and scopes it to a 'previously saved snapshot', which separates it from the sibling restore_page (a trash-restore). It stops short of naming that sibling explicitly, so differentiation relies on inference from the phrase 'snapshot'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the reference to 'previously saved snapshot' and the `include_files` mention suggest a prior snapshot_page call, but no explicit when-to-use/when-not guidance or named alternative (e.g. restore_page for deleted pages) appears. An agent must infer the workflow from the behavioral prose.

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