Skip to main content
Glama

read_note

Retrieve the content of a Markdown note by specifying its filename to access stored information from the Notes MCP Server.

Instructions

Read the contents of a note

Args: filename: Note filename (with .md extension)

Returns: Note content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes

Implementation Reference

  • The handler function for the 'read_note' tool. It reads the specified note file from the notes directory and returns its content, or an error message if the file does not exist. Decorated with @mcp.tool() for registration.
    @mcp.tool() def read_note(filename: str) -> str: """ Read the contents of a note Args: filename: Note filename (with .md extension) Returns: Note content """ ensure_notes_dir() filepath = os.path.join(NOTES_DIR, filename) if not os.path.exists(filepath): return f"Note '{filename}' not found" with open(filepath, "r", encoding="utf-8") as f: return f.read()
  • Input/output schema defined in the docstring of the read_note function, describing the filename parameter and return value.
    """ Read the contents of a note Args: filename: Note filename (with .md extension) Returns: Note content """
  • notes_server.py:88-88 (registration)
    Registration of the 'read_note' tool via the @mcp.tool() decorator.
    @mcp.tool()

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/sayranovv/notes-mcp-server'

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