module CrystalMcp::Tools

Overview

Orchestrates the various tools available to the MCP server.

Extended Modules

Defined in:

tools.cr
tools/compiler.cr

Instance Method Summary

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 as JSON::Any.

[View source]
def list #

Returns a list of all available tool definitions.


[View source]