Register Tool • Rust AI Agent SDK

register_tool: Register a tool

register_tool

Method

</div>

This is a method of the MCPServer class in the mcp module.

Register a tool

Diagram

uses

returns

Agent

Tool: register_tool

Result

Signature

python
def register_tool(&mut self, tool: MCPTool) -> ()

Parameters

ParamField MCPTool

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation