module
CrystalMcp::Tools
Overview
Orchestrates the various tools available to the MCP server.
Extended Modules
Defined in:
tools.crtools/compiler.cr
Instance Method Summary
-
#call(name : String, arguments : JSON::Any) : String
Dispatches a tool call to the appropriate tool module.
-
#list
Returns a list of all available tool definitions.
Instance Method Detail
def call(name : String, arguments : JSON::Any) : String
#
Dispatches a tool call to the appropriate tool module.
Returns a JSON string with the tool execution results.
Parameters:
name: The name of the tool to call.arguments: The arguments for the tool call asJSON::Any.