registerTool

Registers a dynamic tool with explicitly typed args/result.