Skip to main content
Glama
kj455
by kj455

kibela_get_note_from_path

Retrieve content from a specific Kibela note by providing its path. Enables AI assistants to access and utilize stored information efficiently.

Instructions

Get note content by note path

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesNote path (e.g. /notes/123)

Implementation Reference

  • The main handler function for the kibela_get_note_from_path tool. It validates the path argument, fetches the note using GraphQL, and returns a formatted text content response.
    handler: async (args) => { if (!args.path) { throw new Error('Note path is required') } const response = await getNoteFromPath({ path: args.path }) if (!response.noteFromPath) { throw new Error('Note not found') } return { content: [ { type: 'text', text: JSON.stringify(response.noteFromPath, null, 2), }, ], } }, }
  • Schema definition for the tool, including name, description, and input schema specifying the required 'path' parameter.
    tool: { name: 'kibela_get_note_from_path', description: 'Get note content by note path', inputSchema: { type: 'object', properties: { path: { type: 'string', description: 'Note path (e.g. /notes/123)', }, }, required: ['path'], }, },
  • Registration of the getNoteFromPathTool under the name 'kibela_get_note_from_path' in the central toolDefinitions object.
    kibela_get_note_from_path: getNoteFromPathTool,
  • Helper function that executes the GraphQL query to fetch note by path, used by the tool handler.
    export async function getNoteFromPath(variables: GetNoteFromPathVariables): Promise<GetNoteFromPathResponse> { return gqlRequest(getNoteFromPathQuery, variables) }

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/kj455/mcp-kibela'

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