Uses of Interface
org.mcpjava.server.tools.ToolResponse
Packages that use ToolResponse
Package
Description
Mechanism for providing the implementation of the API.
Define MCP tools.
-
Uses of ToolResponse in org.mcpjava.server.spi
Methods in org.mcpjava.server.spi that return ToolResponseModifier and TypeMethodDescriptiondefault ToolResponseMcpServerSPI.newErrorToolResponse(String error) Creates a new errorToolResponsewith a single text content block containing the error message.default ToolResponseMcpServerSPI.newStructuredToolResponse(Object structuredContent) Creates a new successfulToolResponsewith structured content.default ToolResponseMcpServerSPI.newTextToolResponse(String text) Creates a new successfulToolResponsewith a single text content block. -
Uses of ToolResponse in org.mcpjava.server.tools
Methods in org.mcpjava.server.tools that return ToolResponseModifier and TypeMethodDescriptionToolResponse.Builder.build()Builds the tool responsestatic ToolResponseCreates a new errorToolResponsewith a single text content block containing the error message.static ToolResponseToolResponse.ofStructured(Object structuredContent) Creates a new successfulToolResponsewith structured content.static ToolResponseCreates a new successfulToolResponsewith a single text content block.