Skip to main content
Glama
kj455
by kj455

kibela_get_note_content

Retrieve specific note content from Kibela by providing its note ID, enabling efficient data access and information management within the MCP Kibela server.

Instructions

Get note content by note ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNote ID

Implementation Reference

  • The handler function for the 'kibela_get_note_content' tool. It validates the note ID, fetches the note using the getNote GraphQL function, and returns the note data as a JSON-formatted text content block.
    handler: async (args) => { if (!args.id) { throw new Error('Note ID is required') } const response = await getNote({ id: args.id }) if (!response.note) { throw new Error('Note not found') } return { content: [ { type: 'text', text: JSON.stringify(response.note, null, 2), }, ], } },
  • The schema definition for the tool, including name, description, and input schema requiring a 'id' string parameter.
    name: 'kibela_get_note_content', description: 'Get note content by note ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Note ID', }, }, required: ['id'], }, },
  • Registration of all tools including 'kibela_get_note_content' mapped to its tool definition in the central toolDefinitions object.
    const toolDefinitions = { kibela_search_notes: searchNotesTool, kibela_get_my_notes: getMyNotesTool, kibela_get_note_content: getNoteContentTool, kibela_get_note_from_path: getNoteFromPathTool, kibela_update_note_content: updateNoteContentTool, kibela_create_note: createNoteTool, } as const
  • Helper function that executes the GraphQL query to retrieve a note by ID, used by the tool handler.
    export async function getNote(variables: GetNoteVariables): Promise<GetNoteResponse> { return gqlRequest(getNoteQuery, variables) }

Other Tools

Related Tools

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