Skip to main content
Glama

update-page

Modify existing Notion pages by updating properties, content, or archiving status to keep information current and organized.

Instructions

Update an existing page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesID of the page to update
propertiesYesUpdated page properties
archivedNoWhether to archive the page

Implementation Reference

  • Handler for the 'update-page' tool. Extracts page_id, properties, and optional archived flag from arguments, constructs parameters, calls Notion's pages.update API, and returns the response as JSON text.
    else if (name === "update-page") { const { page_id, properties, archived } = args; const updateParams = { page_id, properties, }; if (archived !== undefined) { updateParams.archived = archived; } const response = await notion.pages.update(updateParams); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
  • Input schema definition for the 'update-page' tool, specifying required page_id and properties, and optional archived boolean.
    inputSchema: { type: "object", properties: { page_id: { type: "string", description: "ID of the page to update" }, properties: { type: "object", description: "Updated page properties" }, archived: { type: "boolean", description: "Whether to archive the page" } }, required: ["page_id", "properties"] }
  • server.js:105-126 (registration)
    Registration of the 'update-page' tool in the tools/list response, including name, description, and input schema.
    { name: "update-page", description: "Update an existing page", inputSchema: { type: "object", properties: { page_id: { type: "string", description: "ID of the page to update" }, properties: { type: "object", description: "Updated page properties" }, archived: { type: "boolean", description: "Whether to archive the page" } }, required: ["page_id", "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/Sjotie/notionMCP'

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