Skip to main content
Glama

get_event_handlers

Retrieve and filter event handlers that define how Conductor responds to external events, with options to specify event names and active status.

Instructions

Get all event handlers or filter by event and active status. Event handlers define how Conductor responds to external events.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventNoFilter by event name
activeOnlyNoReturn only active event handlers (default: true)

Implementation Reference

  • The main handler logic for the 'get_event_handlers' tool. It constructs query parameters from the input arguments (event and activeOnly), makes a GET request to the Conductor API endpoint '/event', and returns the response data as a formatted JSON string in the MCP content format.
    case "get_event_handlers": { const params: any = {}; if ((args as any).event) params.event = (args as any).event; if ((args as any).activeOnly !== undefined) params.activeOnly = (args as any).activeOnly; else params.activeOnly = true; const response = await conductorClient.get("/event", { params }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • The tool schema definition including name, description, and inputSchema for validating parameters: optional 'event' string and 'activeOnly' boolean.
    { name: "get_event_handlers", description: "Get all event handlers or filter by event and active status. Event handlers define how Conductor responds to external events.", inputSchema: { type: "object", properties: { event: { type: "string", description: "Filter by event name", }, activeOnly: { type: "boolean", description: "Return only active event handlers (default: true)", }, }, }, },
  • src/index.ts:435-439 (registration)
    Registers the list tools handler which returns the tools array containing the 'get_event_handlers' tool definition.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { 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/opensensor/conductor-mcp'

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