Tool serialization helpers for OpenAI payloads.
Keeps tool JSON shaping isolated from the main provider logic.