Thanks for reproducing this, @ThomazNeto. @charl-p-botha, I'd try Configure > Examples > Add on your existing agent before recreating it. That matches the Azure documentation's route for adding SQL functions.

One small testing detail: your screenshot's function description already includes 42, so Genie returning 42 wouldn't by itself confirm that it executed the function. After saving, check the function / query details too: Show code for a SQL response, or Show more for a trusted-function response in Chat mode.

If Examples still rejects it - or saves successfully but the function cannot be called - that's the specific distinction I'd take to your account team.

Ivan Vydrin
Lead Software & AI Engineer · Tech Fabric LLC