Greeting @jmartin1 ,
The Anthropic “code execution” tool isn’t supported through Databricks’ Foundation Model APIs. Databricks exposes an OpenAI-compatible tools interface, and the only supported tool type today is a function defined with a JSON schema. That’s why you’re seeing the error about a missing function field in your payload. The Databricks REST interface also differs from Anthropic’s API, which means Anthropic’s tool specifications can’t be used directly.
Why you’re seeing that error
Your payload is using Anthropic’s tool format (for example, type: “code_execution_20250825”), but Databricks expects tools to be defined using the structure {“type”: “function”, “function”: { … }}. When the server processes your tools array and doesn’t find a function object, it returns the error: “Missing ‘function’ in the tool specification.”
Cheers, Lou