Skip to main content
Glama
kj455
by kj455
getNoteFromPath.ts941 B
import { getNoteFromPath } from '../graphql' import { ToolDefinition } from './types' export type GetNoteFromPathArgs = { path: string } export const getNoteFromPathTool: ToolDefinition<GetNoteFromPathArgs> = { 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'], }, }, 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), }, ], } }, }

Implementation Reference

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