Skip to main content
Glama

create_page

Generate a Notion page under a specified parent page or database using the Multi-MCPs server, which integrates multiple third-party APIs for unified functionality.

Instructions

Create a Notion page under a parent page or database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_idYes
propertiesYes

Implementation Reference

  • The handler function for the 'create_page' tool. It validates the configuration and arguments before calling 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); },
  • Registration of the 'create_page' tool within the Notion tools array, including description and input 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"], }, },
  • Input schema for the 'create_page' tool defining required parent_id and properties.
    inputSchema: { type: "object", properties: { parent_id: { type: "string" }, properties: { type: "object" }, }, required: ["parent_id", "properties"], },
  • Helper method in NotionClient class that performs the actual API request to create a page in Notion.
    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