Uses of Record Class
io.modelcontextprotocol.spec.McpSchema.Tool
Packages that use McpSchema.Tool
Package
Description
-
Uses of McpSchema.Tool in io.modelcontextprotocol.client
Method parameters in io.modelcontextprotocol.client with type arguments of type McpSchema.ToolModifier and TypeMethodDescriptionMcpClient.AsyncSpec.toolsChangeConsumer(Function<List<McpSchema.Tool>, reactor.core.publisher.Mono<Void>> toolsChangeConsumer) Adds a consumer to be notified when the available tools change.McpClient.SyncSpec.toolsChangeConsumer(Consumer<List<McpSchema.Tool>> toolsChangeConsumer) Adds a consumer to be notified when the available tools change. -
Uses of McpSchema.Tool in io.modelcontextprotocol.server
Methods in io.modelcontextprotocol.server that return McpSchema.ToolModifier and TypeMethodDescriptionMcpServerFeatures.AsyncToolSpecification.tool()Returns the value of thetoolrecord component.McpServerFeatures.SyncToolSpecification.tool()Returns the value of thetoolrecord component.McpStatelessServerFeatures.AsyncToolSpecification.tool()Returns the value of thetoolrecord component.McpStatelessServerFeatures.SyncToolSpecification.tool()Returns the value of thetoolrecord component.Methods in io.modelcontextprotocol.server with parameters of type McpSchema.ToolModifier and TypeMethodDescriptionMcpServer.AsyncSpecification.tool(McpSchema.Tool tool, BiFunction<McpAsyncServerExchange, Map<String, Object>, reactor.core.publisher.Mono<McpSchema.CallToolResult>> handler) Deprecated.McpServer.SyncSpecification.tool(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult> handler) Deprecated.UseMcpServer.SyncSpecification.toolCall(McpSchema.Tool, BiFunction)instead for tool calls that require a request object.McpServerFeatures.AsyncToolSpecification.Builder.tool(McpSchema.Tool tool) Sets the tool definition.McpServerFeatures.SyncToolSpecification.Builder.tool(McpSchema.Tool tool) Sets the tool definition.McpStatelessServerFeatures.AsyncToolSpecification.Builder.tool(McpSchema.Tool tool) Sets the tool definition.McpStatelessServerFeatures.SyncToolSpecification.Builder.tool(McpSchema.Tool tool) Sets the tool definition.McpServer.AsyncSpecification.toolCall(McpSchema.Tool tool, BiFunction<McpAsyncServerExchange, McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) Adds a single tool with its implementation handler to the server.McpServer.StatelessAsyncSpecification.toolCall(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) Adds a single tool with its implementation handler to the server.McpServer.StatelessSyncSpecification.toolCall(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Adds a single tool with its implementation handler to the server.McpServer.SyncSpecification.toolCall(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, McpSchema.CallToolRequest, McpSchema.CallToolResult> handler) Adds a single tool with its implementation handler to the server.Constructors in io.modelcontextprotocol.server with parameters of type McpSchema.ToolModifierConstructorDescriptionAsyncToolSpecification(McpSchema.Tool tool, BiFunction<McpAsyncServerExchange, Map<String, Object>, reactor.core.publisher.Mono<McpSchema.CallToolResult>> call) Deprecated.Use {@link AsyncToolSpecification(McpSchema.Tool, null, BiFunction)} instead.AsyncToolSpecification(McpSchema.Tool tool, BiFunction<McpAsyncServerExchange, Map<String, Object>, reactor.core.publisher.Mono<McpSchema.CallToolResult>> call, BiFunction<McpAsyncServerExchange, McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) Creates an instance of aAsyncToolSpecificationrecord class.AsyncToolSpecification(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) Creates an instance of aAsyncToolSpecificationrecord class.SyncToolSpecification(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult> call) Deprecated.SyncToolSpecification(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult> call, BiFunction<McpSyncServerExchange, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Creates an instance of aSyncToolSpecificationrecord class.SyncToolSpecification(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Creates an instance of aSyncToolSpecificationrecord class. -
Uses of McpSchema.Tool in io.modelcontextprotocol.spec
Methods in io.modelcontextprotocol.spec that return McpSchema.ToolMethods in io.modelcontextprotocol.spec that return types with arguments of type McpSchema.ToolModifier and TypeMethodDescriptionMcpSchema.ListToolsResult.tools()Returns the value of thetoolsrecord component.Constructor parameters in io.modelcontextprotocol.spec with type arguments of type McpSchema.ToolModifierConstructorDescriptionListToolsResult(List<McpSchema.Tool> tools, String nextCursor) ListToolsResult(List<McpSchema.Tool> tools, String nextCursor, Map<String, Object> meta) Creates an instance of aListToolsResultrecord class.
McpServer.AsyncSpecification.toolCall(McpSchema.Tool, BiFunction)instead for tool calls that require a request object.