I was doing some testing and if the MCP tools is not available when the ToolGroup is setup it just reports no tools. When that happens the model just hallucinates an answer. I have tried various prompts telling the model not to guess and what not. To no avail.
I feel like adding a list of required tools would allow for throwing ToolNotFoundException instead of handing back an empty list. i.e getFoos and calculateBar in a list of required tools would throw ToolNotFoundException if you use that ToolGroup and it doesn't contain those tools. That way we can be more explicit and not have to hope we can convince the model to fail if the tool is missing.
I was doing some testing and if the MCP tools is not available when the ToolGroup is setup it just reports no tools. When that happens the model just hallucinates an answer. I have tried various prompts telling the model not to guess and what not. To no avail.
I feel like adding a list of required tools would allow for throwing ToolNotFoundException instead of handing back an empty list. i.e
getFoosandcalculateBarin a list of required tools would throw ToolNotFoundException if you use that ToolGroup and it doesn't contain those tools. That way we can be more explicit and not have to hope we can convince the model to fail if the tool is missing.