public static class McpStatelessServerFeatures.SyncToolSpecification.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
McpStatelessServerFeatures.SyncToolSpecification |
build()
Builds the SyncToolSpecification instance.
|
McpStatelessServerFeatures.SyncToolSpecification.Builder |
callHandler(BiFunction<McpTransportContext,McpSchema.CallToolRequest,McpSchema.CallToolResult> callHandler)
Sets the call tool handler function.
|
McpStatelessServerFeatures.SyncToolSpecification.Builder |
tool(McpSchema.Tool tool)
Sets the tool definition.
|
public McpStatelessServerFeatures.SyncToolSpecification.Builder tool(McpSchema.Tool tool)
tool - The tool definition including name, description, and parameter
schemapublic McpStatelessServerFeatures.SyncToolSpecification.Builder callHandler(BiFunction<McpTransportContext,McpSchema.CallToolRequest,McpSchema.CallToolResult> callHandler)
callHandler - The function that implements the tool's logicpublic McpStatelessServerFeatures.SyncToolSpecification build()
IllegalArgumentException - if required fields are not setCopyright © 2025. All rights reserved.