Tool Use & Function Calling

What temperature is recommended when using Claude for tool calling?

QUICK ANSWER

Set the temperature to 0.0 when using tools. This ensures arguments are generated reliably and matches the target schemas without creative variance.

Optimization Guidance

A higher temperature (e.g. 1.0) can cause Claude to hallucinate or misformat parameter names. Using 0.0 ensures predictable and deterministic parameter parsing.

Verified against: Anthropic API Reference