Without seeing what you are specifying or describing to the AI, it’s pretty easy to see what’s going on: the function name is likely interpreted as the name of the function just repeated confusingly, so worthy of being deleted.
If you simply renamed that parameter key to something like API_operation the understanding would likely improve.
You have a function that performs multiple tasks that it needs a function name inside? If so, that would seem incompatible with the other parameters.