OpenAI automatically passes the required parameters to Function calls. You can add hints to descriptions about the parameters, or you can add hints how to get the parameters into your prompts. You can find full working Spring AI function call example here.