Interface McpToolExecutor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface McpToolExecutor
Functional interface for MCP tool execution.

MCP tools execute with a context and parameters, returning a string result that is fed back to the LLM.

See Also:
  • Method Details

    • execute

      String execute(AgentToolContext context, Map<String,Object> parameters)
      Execute the tool.
      Parameters:
      context - the tool execution context (guild, user, channel info)
      parameters - the tool parameters provided by the LLM
      Returns:
      the tool's result as a string