Skip to main content
Glama

get_note

Retrieve complete details of a single Notion page, including its body content, by providing the page ID. Use this tool to access full note information for workflow management.

Instructions

获取单篇笔记的完整详情(含 body 内容)。

Args: note_id: Notion 页面 ID include_content: 是否返回页面 body 内容,默认 True

Returns: 笔记详情,如果 include_content=True 则包含 content 字段

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_idYes
include_contentNo

Implementation Reference

  • The handler function that executes the logic to fetch a note from Notion by its ID, optionally including its content.
    def get_note(note_id: str, include_content: bool = True) -> dict:
        """
        获取单篇笔记的完整详情(含 body 内容)。
    
        Args:
            note_id:         Notion 页面 ID
            include_content: 是否返回页面 body 内容,默认 True
    
        Returns:
            笔记详情,如果 include_content=True 则包含 content 字段
        """
        client = get_client()
        note = client.get_note(note_id)
        result = note.model_dump()
        if include_content:
            result["content"] = client.get_note_content(note_id)
        return result
  • server.py:49-49 (registration)
    Registration of the get_note tool within the MCP server setup.
    mcp.tool(get_note)

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/wauwaya/notion-workflow-mcp'

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