Uses of Interface
dev.tachyonmcp.api.server.features.tools.ToolResult
Packages that use ToolResult
Package
Description
Tool feature types and handler interfaces.
Protocol interfaces and domain types for MCP server and client interaction.
Generated JSON-RPC codecs for the MCP 2025-11-25 protocol version.
Generated JSON-RPC codecs for the MCP 2026-07-28 protocol version.
JSON serialization and type utilities for MCP server internals.
Echo tool — mirrors input back to the client for testing.
You.com search tool — performs web searches via the You.com API.
-
Uses of ToolResult in dev.tachyonmcp.api.server.features.tools
Classes in dev.tachyonmcp.api.server.features.tools that implement ToolResultModifier and TypeClassDescriptionstatic final recordSentinel returned by a task-augmented handler that defers completion to the caller.static final recordA failed invocation carrying a human-readable error message.static final recordSignals that completing the tool call requires additional input from the caller.static final recordA successful invocation, carrying an optional structured value and its content blocks.static final recordWraps another result with request-level_metaentries.Methods in dev.tachyonmcp.api.server.features.tools that return ToolResultModifier and TypeMethodDescriptionToolFn.apply(InteractionContext ctx, ToolRequest request) static ToolResultToolResult.blocks(ContentBlock... blocks) Deprecated, for removal: This API element is subject to removal in a future version.static ToolResultToolResult.content(ContentBlock... blocks) Creates a successful result containing the given content blocks.static ToolResultToolResult.empty()Creates a successful result with no structured value and no content.static ToolResultCreates a failed result with the given error message.AbstractToolHandler.handle(InteractionContext context, ToolRequest request) Handles a tool request synchronously.ToolResult.WithMeta.inner()Returns the value of theinnerrecord component.static ToolResultToolResult.inputRequired(Map<String, ? extends InputRequest> reqs, @Nullable String state) Creates a result that requests additional input from the caller before the tool call can complete.static ToolResultCreates a success result carryingpayloadas structured content with no text block.static ToolResultCreates a success result carryingpayloadas structured content plus an explicit human-readable text block.static ToolResultCreates a success result with a pre-serialized JSON payload.static ToolResultToolResult.structured(Object payload) Alias forof(Object)with a name that states what the payload becomes (structured content) rather than how it's constructed.static ToolResultToolResult.structured(Object payload, String text) Alias forof(Object, String)with a name that states what the payload becomes (structured content) rather than how it's constructed.static ToolResultCreates a successful result containing a single text content block.default ToolResultReturns a copy of this result with a single_metaentry set.default ToolResultReturns a copy of this result withmmerged into its_metaentries; returns this unchanged whenmis empty.Methods in dev.tachyonmcp.api.server.features.tools that return types with arguments of type ToolResultModifier and TypeMethodDescriptionCompletionStage<? extends ToolResult> AsyncToolFn.apply(InteractionContext ctx, ToolRequest request) Executes the tool function asynchronously with the given request.CompletionStage<? extends ToolResult> AbstractToolHandler.handleAsync(InteractionContext context, ToolRequest request) Handles a tool request asynchronously.CompletionStage<? extends ToolResult> ToolHandler.handleAsync(InteractionContext context, ToolRequest request) Handles a tool request asynchronously.Constructors in dev.tachyonmcp.api.server.features.tools with parameters of type ToolResultModifierConstructorDescriptionWithMeta(ToolResult inner, Map<String, Object> meta) Creates an instance of aWithMetarecord class. -
Uses of ToolResult in dev.tachyonmcp.core.protocol
Methods in dev.tachyonmcp.core.protocol with parameters of type ToolResultModifier and TypeMethodDescriptionProtocolResponseMapper.callToolResult(ToolResult result) Maps a tool call result into protocol-specific shape. -
Uses of ToolResult in dev.tachyonmcp.core.protocol.mcp.v2025_11_25.codecs
Methods in dev.tachyonmcp.core.protocol.mcp.v2025_11_25.codecs with parameters of type ToolResult -
Uses of ToolResult in dev.tachyonmcp.core.protocol.mcp.v2026_07_28.codecs
Methods in dev.tachyonmcp.core.protocol.mcp.v2026_07_28.codecs with parameters of type ToolResult -
Uses of ToolResult in dev.tachyonmcp.core.server.json
Methods in dev.tachyonmcp.core.server.json that return ToolResultModifier and TypeMethodDescriptionstatic ToolResultJsonUtils.serializeStructured(ToolResult result, PayloadSerializer serializer) Serializes non-tree structured values in aToolResultintoJsonDocument.Methods in dev.tachyonmcp.core.server.json with parameters of type ToolResultModifier and TypeMethodDescriptionstatic ToolResultJsonUtils.serializeStructured(ToolResult result, PayloadSerializer serializer) Serializes non-tree structured values in aToolResultintoJsonDocument. -
Uses of ToolResult in dev.tachyonmcp.extensions.tools.echo
Methods in dev.tachyonmcp.extensions.tools.echo that return ToolResultModifier and TypeMethodDescriptionEchoToolHandler.handle(InteractionContext context, ToolRequest request) -
Uses of ToolResult in dev.tachyonmcp.extensions.tools.youcom.search
Methods in dev.tachyonmcp.extensions.tools.youcom.search that return ToolResultModifier and TypeMethodDescriptionYouComSearchTool.handle(InteractionContext context, ToolRequest request)
content(ContentBlock...)