Expand description
Result types for MCP tool implementations.
Provides ergonomic return types that automatically convert to CallToolResult.
Traits§
- Into
Call Tool Result - Extension trait for converting values to
CallToolResult.
Functions§
- error_
result - Create an error
CallToolResultwith text content. - success_
result - Create a successful
CallToolResultwith text content. - tool_
err - Convenience function to create a failed tool result.
- tool_ok
- Convenience function to create a successful tool result.
Type Aliases§
- Tool
Result - Result type for MCP tool implementations.