Skip to main content
Glama

get_notes_by_folder

Retrieve all notes from a specific folder in NotePlan using Claude Desktop. Use this tool to organize and access your notes directly from within conversations, enhancing productivity and note management.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderYesThe folder name to search in

Implementation Reference

  • Core handler function that loads all notes from cache and filters those matching the given folder exactly or as a prefix (for subfolders).
    function getNotesByFolder(folder: string): Note[] { const notes = getAllNotes(); return notes.filter(note => note.folder === folder || note.folder.startsWith(folder + '/')); }
  • src/index.ts:73-89 (registration)
    Registers the 'get_notes_by_folder' tool in the MCP server, defining the input schema and the handler that delegates to noteService and formats the JSON response.
    server.tool( 'get_notes_by_folder', { folder: z.string().describe('The folder name to search in'), }, async ({ folder }) => { const notes = noteService.getNotesByFolder(folder); return { content: [ { type: 'text', text: JSON.stringify(notes, null, 2), }, ], }; } );
  • Zod input schema validating the 'folder' parameter as a string.
    { folder: z.string().describe('The folder name to search in'),
  • Exports the getNotesByFolder function as part of the noteService object for use by MCP handlers.
    getNotesByFolder,

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/bscott/noteplan-mcp'

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