toolname = h.getName
Starting from the Adding a Custom Toolchain example, enter the following lines:
tc = coder.make.ToolchainInfo;
tool = tc.getBuildTool('C Compiler');
tool.getName
ans = C Compiler
tool.setName('X Compiler')
tool.getName
ans = X Compiler