Skip to main content
Glama

search_notes

Search your NotePlan notes using natural language queries to quickly find specific information within your note collection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe search query

Implementation Reference

  • Core handler function implementing note search by filtering cached notes where the query matches title or content case-insensitively.
    function searchNotes(query: string): Note[] { const notes = getAllNotes(); const lowerQuery = query.toLowerCase(); return notes.filter(note => note.title.toLowerCase().includes(lowerQuery) || note.content.toLowerCase().includes(lowerQuery) ); }
  • Zod input schema for the search_notes tool defining the 'query' parameter.
    { query: z.string().describe('The search query'), },
  • src/index.ts:54-70 (registration)
    Registration of the 'search_notes' MCP tool, including schema and thin handler that delegates to noteService.searchNotes and formats response.
    server.tool( 'search_notes', { query: z.string().describe('The search query'), }, async ({ query }) => { const results = noteService.searchNotes(query); return { content: [ { type: 'text', text: JSON.stringify(results, null, 2), }, ], }; } );

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