Skip to main content
Glama
Gowtham-3004

MCP Kynhood Events Server

by Gowtham-3004
getEventById.ts1.17 kB
/** * MCP Tool: Get Event by ID */ import { getEventById } from '../api/events.js'; import { logger } from '../utils/logger.js'; export interface GetEventByIdInput { id: string; } export interface GetEventByIdOutput { event: any; } /** * Get detailed information about a specific event */ export async function getEventByIdTool(input: GetEventByIdInput): Promise<GetEventByIdOutput> { const { id } = input; logger.debug('getEventById tool called', { id }); if (!id) { throw new Error('Event ID is required'); } try { const event = await getEventById(id); return { event }; } catch (error) { logger.error('getEventById tool error', error); throw error; } } export const getEventByIdToolDefinition = { name: 'getEventById', description: 'Get detailed information about a specific event by its ID. Returns complete event details including description, location, date, and other metadata.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'The unique identifier of the event (24-character hex string)' } }, required: ['id'] } };

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/Gowtham-3004/mcp-kyn-event'

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