Are there any sample build tools that use the TETware API?
Yes, see the C api demonstration test suite within the TETware contrib distribution. This uses a tool called build tool that front-ends make, and is able to pass test configuration variables to make in the environment. This is an API conforming tool, and upon failure it puts the output from make into the journal.