I've had this issue where my voice agents don't end the call when it's supposed to end. using single prompt agents, specified clear instructions on last message to be given, after which call should be ended by agent.
There's another issue - we're doing MCP calls to a third party server using custom functions (that calls a mcp proxy, which does some helpful business logic on top of the query).
The use cases and schema of these custom function (http calls) are well defined, sometimes the agent understands which call is to be done, announces it's gonna do it, then comes to a halt. Note - the mcp calls are blazing fast so that's not the issue here, also, the actual http calls haven't been initiated yet.
How can these be fixed?