Error in custom AI Tool with no parameters

I have two custom AI Tools- one with parameters and one with no parameters. Both pass with the Run Test button. But when a bot tries to use the tools, the first one works, and the second fails with:

I see the troubleshooting tips at AI bot - Custom tools.

  • The Test interface passes with Success.
  • My group is in ai_bot_debugging_allowed_groups, but I don’t know where the bot transcripts are.
  • /logs just has the same error shown above.

I tried adding a dummy parameter, same result.

Up-to-date with 3.5.0.beta1-dev. Using Gemini 2.0 Flash.


function invoke(params) {
    const url = `https://example.com/investments/sponsors`;
    let result = http.get(url);
    return result;
}

function details() {
    return "Returns sponsors.";
}