Skip to main content
Glama
notion-mcp-slim
by TakoYunYi

replace-page-content

Replaces all content on a Notion page by deleting existing blocks and appending new blocks, enabling full page rewrites.

Instructions

Notion | Replace entire page content (delete all blocks then append new ones). Supported block types: paragraph, heading_1/2/3, bulleted_list_item, numbered_list_item, to_do, toggle, quote, callout, code, divider, table (with table_row as children). Note: link in rich_text must have url property or be omitted entirely (link: null is NOT allowed).

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>",
      "children": "<children>"
    },
    "name": "replace-page-content"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesThe page ID to replace content
childrenYesNew block array. Supported types: paragraph, heading_1/2/3, bulleted_list_item, numbered_list_item, to_do, toggle, quote, callout, code, divider, table. Note: table_row must be table.children, not top-level block. link in rich_text must have url property or be omitted entirely (link: null is NOT allowed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the key trait: this destroys all existing page content before writing. It also flags a validation pitfall (link must have url or be omitted; link: null is invalid). Gaps remain around block-count limits, permissions, and whether the operation is atomic on failure.

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?

Front-loaded with the operation and its destructive mechanism, then the type list and pitfalls. Dense but every clause carries information; minor redundancy with the schema's own description of the children parameter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no output schema and no annotations, the definition covers inputs and the destructive nature but says nothing about the return value or failure behavior, leaving an agent unable to predict what comes back after the call.

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 schema description already restates the supported block types and the link rule, so the description adds little beyond structured data. It does add the distinction that table_row must live under table.children rather than at top level, which is a genuine clarification of nested-parameter usage.

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?

Names a specific verb and resource ('Replace entire page content') and clarifies the mechanism as 'delete all blocks then append new ones', which disambiguates it from append/patch-style siblings. It does not explicitly name which sibling to use for partial edits, so it stops short of a 5.

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?

The destructive delete-then-append framing implies the use case (full overwrite rather than incremental edits), but there is no explicit 'use X instead when you only want to add blocks' or stated prerequisites. Guidance is inferable rather than stated.

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