Skip to main content
Glama
notion-mcp-server

notion-mcp-server

by awkoy

Notion Write

notion_write
Destructive

Run named Notion write operations to create, update, move, archive, or delete pages, blocks, comments, databases, and files, with batch support.

Instructions

Run one Notion write operation by name. Archive, trash and delete operations remove content — confirm with the user before running them.

Two ways to call: • Single: { operation: "set_page_title", payload: { page_id, title } } • Batch: { operation: "set_page_title", payload: { items: [{page_id, title}, ...], atomic?: false, idempotency_key?: "...", concurrency?: 3 } } create_page, append_blocks, update_block and update_page_markdown also take a markdown string.

Responses are slimmed; pass verbose:true inside payload (single) or per item (batch) for the raw Notion object. Every id field (page_id, block_id, database_id, view_id, …) also accepts a Notion URL, as copied from Share → Copy link.

If the payload is malformed, the error response includes the schema + a working example so you can correct and retry in one round-trip. Call notion_describe(operation) ahead of time only for complex shapes (block trees, database property definitions, batch_mixed_blocks).

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": {
      "operation": "<operation>",
      "payload": "<payload>"
    },
    "name": "notion_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesOperation parameters. Pass either single-op fields directly, or { items: [...], atomic?, idempotency_key?, concurrency? } for batch.
operationYesThe write operation to run. This list is the complete menu of write operations enabled on this server; notion_describe(operation) returns any operation's full schema.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.5.0
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "create_database",
      -  "update_database",
      -  "delete_database",
      -  "create_view",
      -  "update_view",
      -  "delete_view",
      -  "add_page_comment",
      -  "add_discussion_comment",
      -  "update_comment",
      -  "delete_comment",
      -  "upload_file",
      -  "update_data_source",
      -  "delete_data_source",
      -  "create_page",
      -  "set_page_title",
      -  "set_page_property",
      -  "set_page_properties",
      -  "archive_page",
      -  "trash_page",
      -  "restore_page",
      -  "move_page",
      -  "update_page_markdown",
      -  "append_blocks",
      -  "update_block",
      -  "delete_block",
      -  "batch_mixed_blocks"
      -]New value: +[
      +  "create_database",
      +  "update_database",
      +  "delete_database",
      +  "create_view",
      +  "update_view",
      +  "delete_view",
      +  "add_page_comment",
      +  "add_discussion_comment",
      +  "update_comment",
      +  "delete_comment",
      +  "update_data_source",
      +  "delete_data_source",
      +  "upload_file",
      +  "upload_to_property",
      +  "create_page",
      +  "set_page_title",
      +  "set_page_property",
      +  "set_page_properties",
      +  "archive_page",
      +  "trash_page",
      +  "restore_page",
      +  "move_page",
      +  "update_page_markdown",
      +  "append_blocks",
      +  "update_block",
      +  "delete_block",
      +  "batch_mixed_blocks"
      +]
  2. Changed1 schema field changedv3.3.0
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "create_database",
      -  "update_database",
      -  "delete_database",
      -  "update_data_source",
      -  "delete_data_source",
      -  "create_view",
      -  "update_view",
      -  "delete_view",
      -  "add_page_comment",
      -  "add_discussion_comment",
      -  "update_comment",
      -  "delete_comment",
      -  "upload_file",
      -  "create_page",
      -  "set_page_title",
      -  "set_page_property",
      -  "set_page_properties",
      -  "archive_page",
      -  "trash_page",
      -  "restore_page",
      -  "move_page",
      -  "update_page_markdown",
      -  "append_blocks",
      -  "update_block",
      -  "delete_block",
      -  "batch_mixed_blocks"
      -]New value: +[
      +  "create_database",
      +  "update_database",
      +  "delete_database",
      +  "create_view",
      +  "update_view",
      +  "delete_view",
      +  "add_page_comment",
      +  "add_discussion_comment",
      +  "update_comment",
      +  "delete_comment",
      +  "upload_file",
      +  "update_data_source",
      +  "delete_data_source",
      +  "create_page",
      +  "set_page_title",
      +  "set_page_property",
      +  "set_page_properties",
      +  "archive_page",
      +  "trash_page",
      +  "restore_page",
      +  "move_page",
      +  "update_page_markdown",
      +  "append_blocks",
      +  "update_block",
      +  "delete_block",
      +  "batch_mixed_blocks"
      +]
  3. Addedv3.0.1

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known. The description still adds real value by naming which operations remove content, requiring user confirmation, disclosing that responses are slimmed with a verbose override, and promising a self-correcting error payload with schema plus example. It stops short of describing partial-failure behavior under atomic:false or the batch response shape, which is the remaining behavioral gap.

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?

Front-loads the destructive-operation warning, then uses bulleted call shapes and short paragraphs. Dense but every sentence carries operational information: payload shapes, id resolution, error recovery, and describe deferral. Nothing is redundant 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 27-operation dispatcher with an opaque payload this is thorough: call shapes, id flexibility, verbosity, and error recovery are all covered. The gap is return-value and failure semantics — with no output schema, the description never says what a batch call returns when some items fail under atomic:false.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema's payload is an opaque additionalProperties object, so structured data alone conveys almost nothing. The description supplies concrete single and batch payload shapes, the items/atomic/idempotency_key/concurrency fields, the verbose flag placement, the markdown-string operations, and the fact that every id field accepts a Notion URL — meaning far 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 and resource — 'Run one Notion write operation by name' — and makes clear it is a dispatcher over the operation enum. It separates itself from notion_describe by assigning that sibling the schema-lookup role, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit selection rules: use notion_describe only 'for complex shapes (block trees, database property definitions, batch_mixed_blocks)', not by default. It also states the user-confirmation prerequisite for archive/trash/delete and shows exactly when to use single vs batch form.

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

Deploy Server

Other Tools