Skip to main content
Glama

create-page

Generate a new page within a specified Notion database, including custom properties and optional content blocks, using the Notion MCP Server for AI-assisted workspace management.

Instructions

Create a new page in a database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
childrenNoOptional content blocks
parent_idYesID of the parent database
propertiesYesPage properties

Implementation Reference

  • Handler logic for the 'create-page' tool. Destructures arguments, constructs parameters for Notion's pages.create API (parent database_id, properties, optional children), calls the API, and returns the response as formatted text.
    else if (name === "create-page") {
      const { parent_id, properties, children } = args;
      
      const pageParams = {
        parent: { database_id: parent_id },
        properties,
      };
    
      if (children) {
        pageParams.children = children;
      }
    
      const response = await notion.pages.create(pageParams);
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • server.js:81-102 (registration)
    Registration of the 'create-page' tool in the tools/list response, including name, description, and input schema definition.
    {
      name: "create-page",
      description: "Create a new page in a database",
      inputSchema: {
        type: "object",
        properties: {
          parent_id: {
            type: "string",
            description: "ID of the parent database"
          },
          properties: {
            type: "object",
            description: "Page properties"
          },
          children: {
            type: "array",
            description: "Optional content blocks"
          }
        },
        required: ["parent_id", "properties"]
      }
    },
Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/emmanuelsystems/mcpnotionslack'

If you have feedback or need assistance with the MCP directory API, please join our Discord server