Skip to main content
Glama

Outlook Meetings Scheduler MCP Server

tool-registration.ts998 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { logger } from '../logger.js'; /** * Helper function to register a tool with the MCP server. * Handles common logging and error handling boilerplate. */ export function registerTool( server: McpServer, name: string, description: string, params: any, handler: (args: any) => Promise<any> ): void { server.tool( name, description, params, async (args: any) => { // Common logging pattern for all tools logger.info(`ℹ️ Executing ${name} tool with params: ${JSON.stringify(args)}`); try { // Call the actual handler function return await handler(args); } catch (error) { logger.error(`Error in ${name}:`, error); return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : 'Unknown error'}` } ] }; } } ); }

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/anoopt/outlook-meetings-scheduler-mcp-server'

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