Interface IMCPTool


public interface IMCPTool
An MCP tool is an exported function that and LLM-powered Agent can invoke MCP Tools are declared in extension point org.eclipse.mcp.modelContextProtocolServer The class attribute of a tool must be an instance of org.eclipse.mcp.IMCPTool
  • Method Details

    • apply

      String[] apply(Map<String,Object> args, IElementProperties properties)
      Executes the MCP Tool
      Parameters:
      args - A map of input parameters sent to this function matching the tool's declared input JSON schema
      properties - utility to fetch and prompt for user customized preference values
      Returns:
      An array of strings representing the result of the tool execution.