Skip to main content
Glama

get-page

Retrieve specific pages from Notion workspaces using their unique page ID. This tool enables AI assistants to access and work with Notion content efficiently.

Instructions

Retrieve a page by its ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesID of the page to retrieve

Implementation Reference

  • Handler logic for the 'get-page' tool: destructures page_id from arguments, removes dashes from the ID, retrieves the page using Notion's pages.retrieve API, and returns the JSON response as text content.
    else if (name === "get-page") {
      let { page_id } = args;
      
      // Remove dashes if present in page_id
      page_id = page_id.replace(/-/g, "");
    
      const response = await notion.pages.retrieve({ page_id });
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Input schema definition for the 'get-page' tool, registered in the tools/list response. Requires a 'page_id' string.
    name: "get-page",
    description: "Retrieve a page by its ID",
    inputSchema: {
      type: "object",
      properties: {
        page_id: {
          type: "string",
          description: "ID of the page to retrieve"
        }
      },
      required: ["page_id"]
    }
Install Server

Other Tools

Related Tools

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/emmanuelsystems/mcpnotionslack'

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