Skip to main content
Glama
kj455
by kj455

kibela_get_my_notes

Retrieve your most recent notes from Kibela, with customizable limits, using the MCP Kibela server to streamline access and organization of information.

Instructions

Get my latest notes from Kibela

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of notes to fetch

Implementation Reference

  • The async handler function that processes input arguments, fetches the user's latest notes via GraphQL query, filters and maps the response, and returns the notes as a formatted JSON string in a tool response content block.
    handler: async (args) => { const limit = args.limit ?? 10 const response = await getMyNotes({ limit }) const edges = response.currentUser?.latestNotes?.edges ?? [] const notes = edges .filter((edge): edge is NonNullable<(typeof edges)[number]> => edge != null) .filter((edge) => edge.node != null) .map((edge) => edge.node) return { content: [ { type: 'text', text: JSON.stringify(notes, null, 2), }, ], } },
  • The tool schema definition, including the name 'kibela_get_my_notes', description, and input schema for the optional 'limit' parameter with default 10.
    tool: { name: 'kibela_get_my_notes', description: 'Get my latest notes from Kibela', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Maximum number of notes to fetch', default: 10, }, }, }, },
  • Registration of all tools, including 'kibela_get_my_notes' mapped to getMyNotesTool, in the toolDefinitions object used for dispatching tool requests.
    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 for fetching the current user's latest notes, used by the tool handler.
    export async function getMyNotes(variables: GetMyNotesVariables): Promise<GetMyNotesResponse> { return gqlRequest(getMyNotesQuery, 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