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