Skip to main content
Glama

notion-mcp-server

updatePageProperties.ts705 B
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; import { notion } from "../services/notion.js"; import { handleNotionError } from "../utils/error.js"; import { UpdatePagePropertiesParams } from "../types/page.js"; export async function updatePageProperties( params: UpdatePagePropertiesParams ): Promise<CallToolResult> { try { const response = await notion.pages.update({ page_id: params.pageId, properties: params.properties, }); return { content: [ { type: "text", text: `Page properties updated successfully: ${response.id}`, }, ], }; } catch (error) { return handleNotionError(error); } }

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/awkoy/notion-mcp-server'

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