Those functions usually already exist, you just write light wrappers around them for the LLM.