Skip to main content
Glama

get_note

Retrieve specific notes by identifier from your Flint Note vault to access organized markdown files with semantic types for AI collaboration.

Instructions

Retrieve a specific note by identifier

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierYesNote identifier in format "type/filename" or full path
vault_idNoOptional vault ID to operate on. If not provided, uses the current active vault.
fieldsNoOptional array of field names to include in response. Supports dot notation for nested fields (e.g. "metadata.tags") and wildcard patterns (e.g. "metadata.*"). If not specified, all fields are returned.

Implementation Reference

  • The handleGetNote method implements the core logic for the 'get_note' tool. It validates input arguments, resolves the vault context, fetches the note using noteManager.getNote(args.identifier), optionally filters fields using filterNoteFields, and returns the result as a JSON text content block.
    handleGetNote = async (args: GetNoteArgs) => { // Validate arguments validateToolArgs('get_note', args); const { noteManager } = await this.resolveVaultContext(args.vault_id); const note = await noteManager.getNote(args.identifier); // Apply field filtering if specified const filteredNote = note ? filterNoteFields(note, args.fields) : null; return { content: [ { type: 'text', text: JSON.stringify(filteredNote, null, 2) } ] }; };
  • The JSON schema definition for the 'get_note' tool input parameters, used for validation. Requires 'identifier' (string), optional 'vault_id' (string) and 'fields' (array of strings for field selection).
    name: 'get_note', description: 'Retrieve a specific note by identifier with optional field filtering', inputSchema: { type: 'object', properties: { identifier: { type: 'string', description: 'Note identifier in type/filename format' }, vault_id: { type: 'string', description: 'Optional vault ID to search in. If not provided, uses the current active vault.' }, fields: { type: 'array', items: { type: 'string' }, description: 'Optional list of fields to include in response (id, title, content, type, filename, path, created, updated, size, metadata)' } }, required: ['identifier'] } },
  • Registration of the 'get_note' tool handler in the MCP server's CallToolRequestSchema dispatch switch statement, mapping tool calls to this.noteHandlers.handleGetNote.
    case 'get_note': return await this.noteHandlers.handleGetNote(args as unknown as GetNoteArgs); case 'get_notes': return await this.noteHandlers.handleGetNotes( args as unknown as GetNotesArgs ); case 'update_note':
  • TypeScript interface defining the input arguments for the get_note handler, used for type safety.
    export interface GetNoteArgs { identifier: string; vault_id?: string; fields?: 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/disnet/flint-note'

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