Skip to main content
Glama
TaylorChen

Multi-MCPs

by TaylorChen

update_page

Modify properties of a Notion page by specifying the page ID and updated property values to manage content within the Multi-MCPs server.

Instructions

Update a Notion page properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYes
propertiesYes

Implementation Reference

  • The handler function for the 'update_page' tool. It checks for the Notion token configuration, extracts and validates the page_id from args, and delegates to the Notion client's updatePage method with the provided properties.
    async update_page(args: Record<string, unknown>) {
      if (!cfg.notionToken) throw new Error("NOTION_TOKEN is not configured");
      const pageId = String(args.page_id || "");
      if (!pageId) throw new Error("page_id is required");
      return client.updatePage(pageId, args.properties);
    },
  • The input schema definition for the 'update_page' tool, specifying required 'page_id' (string) and 'properties' (object). Used for validation during tool invocation.
    inputSchema: {
      type: "object",
      properties: {
        page_id: { type: "string" },
        properties: { type: "object" },
      },
      required: ["page_id", "properties"],
    },
  • The tool registration entry for 'update_page' within the registerNotion() function's tools array. Includes name, description, and input schema.
    {
      name: "update_page",
      description: "Update a Notion page properties",
      inputSchema: {
        type: "object",
        properties: {
          page_id: { type: "string" },
          properties: { type: "object" },
        },
        required: ["page_id", "properties"],
      },
    },
  • The NotionClient helper method that performs the actual API request to update a page's properties via Notion's PATCH /v1/pages/{pageId} endpoint. Called by the tool handler.
    updatePage(pageId: string, properties: unknown) {
      return this.request(`/v1/pages/${pageId}`, {
        method: "PATCH",
        body: { 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