Skip to main content
Glama

create_page

Create a Notion page within a specified parent page or database, enabling content organization and management through the Multi-MCPs server.

Instructions

Create a Notion page under a parent page or database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_idYes
propertiesYes

Implementation Reference

  • Handler function for the create_page tool that validates inputs and calls the Notion client's createPage method.
    async create_page(args: Record<string, unknown>) { if (!cfg.notionToken) throw new Error("NOTION_TOKEN is not configured"); const parentId = String(args.parent_id || ""); if (!parentId) throw new Error("parent_id is required"); return client.createPage(parentId, args.properties); },
  • Input schema defining parent_id and properties for create_page tool.
    inputSchema: { type: "object", properties: { parent_id: { type: "string" }, properties: { type: "object" }, }, required: ["parent_id", "properties"], },
  • Tool registration entry for create_page including name, description, and schema.
    { name: "create_page", description: "Create a Notion page under a parent page or database", inputSchema: { type: "object", properties: { parent_id: { type: "string" }, properties: { type: "object" }, }, required: ["parent_id", "properties"], }, },
  • Helper method in NotionClient class that creates a Notion page via API request.
    createPage(parentId: string, properties: unknown) { return this.request(`/v1/pages`, { method: "POST", body: { parent: { page_id: parentId, database_id: undefined }, properties }, }); }

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/TaylorChen/muti-mcps'

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