Skip to main content
Glama

get_note_by_id

Retrieve a specific note from NotePlan using its unique identifier to access content directly within Claude conversations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe ID of the note to retrieve

Implementation Reference

  • src/index.ts:32-51 (registration)
    Registration of the 'get_note_by_id' MCP tool, including input schema (id: string) and inline handler that calls noteService.getNoteById and returns JSON-formatted note.
    server.tool( 'get_note_by_id', { id: z.string().describe('The ID of the note to retrieve'), }, async ({ id }) => { const note = noteService.getNoteById(id); if (!note) { throw new Error(`Note not found with id: ${id}`); } return { content: [ { type: 'text', text: JSON.stringify(note, null, 2), }, ], }; } );
  • Core handler logic for retrieving a note by its ID: loads all notes from cache/filesystem and finds the matching note.
    function getNoteById(id: string): Note | null { const notes = getAllNotes(); return notes.find(note => note.id === id) || null; }
  • TypeScript interface defining the Note object structure used in tool responses.
    interface Note { id: string; title: string; content: string; created: string; modified: string; folder: string; filePath?: string; filename?: string; type?: string; }

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