Module tool

Source
Expand description

Tool system for MCP servers

This module provides the abstraction for implementing and managing tools in MCP servers. Tools are functions that can be called by clients to perform specific operations.

Structs§

AdditionTool
Tool for adding two numbers
EchoTool
Simple echo tool for testing
TimestampTool
Tool for getting current timestamp
Tool
A registered tool with its handler
ToolBuilder
Builder for creating tools with fluent API

Traits§

ToolHandler
Trait for implementing tool handlers