European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Type Alias ToolHandler

    ToolHandler: (args: unknown) => Promise<ToolResult>

    Typed handler function for an MCP tool call.

    Type Declaration

      • (args: unknown): Promise<ToolResult>
      • Parameters

        • args: unknown

          Raw (unvalidated) tool arguments from the MCP request

        Returns Promise<ToolResult>

        Promise resolving to the tool execution result