<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Claude Code-Execution Call Format in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/claude-code-execution-call-format/m-p/141893#M1528</link>
    <description>&lt;P&gt;Greeting&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/200668"&gt;@jmartin1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;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.&lt;/P&gt;
&lt;P class="p1"&gt;Why you’re seeing that error&lt;/P&gt;
&lt;P class="p1"&gt;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.”&lt;/P&gt;
&lt;P class="p1"&gt;Cheers, Lou&lt;/P&gt;</description>
    <pubDate>Mon, 15 Dec 2025 18:48:07 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-12-15T18:48:07Z</dc:date>
    <item>
      <title>Claude Code-Execution Call Format</title>
      <link>https://community.databricks.com/t5/generative-ai/claude-code-execution-call-format/m-p/141780#M1522</link>
      <description>&lt;P&gt;Is it possible to use the code execution tool with instances of Claude hosted through Databricks? If I try to format the payload like in Anthropic's documentation, I get an error that the function isn't defined properly:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;    tools&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;[{&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&lt;SPAN&gt;        "type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"code_execution_20250825"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&lt;SPAN&gt;        "name"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"code_execution"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;&lt;SPAN&gt;    }]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Status code: 400&lt;BR /&gt;Response: {"error_code":"INVALID_PARAMETER_VALUE","message":"INVALID_PARAMETER_VALUE: Missing 'function' in the tool specification."}&lt;BR /&gt;&lt;BR /&gt;And if I do define code-execution in the payload according to OpenAI's schema, I get a response with the generated code, but the model doesn't actually run it and return the results in the same output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2025 20:27:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/claude-code-execution-call-format/m-p/141780#M1522</guid>
      <dc:creator>jmartin1</dc:creator>
      <dc:date>2025-12-12T20:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Claude Code-Execution Call Format</title>
      <link>https://community.databricks.com/t5/generative-ai/claude-code-execution-call-format/m-p/141893#M1528</link>
      <description>&lt;P&gt;Greeting&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/200668"&gt;@jmartin1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;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.&lt;/P&gt;
&lt;P class="p1"&gt;Why you’re seeing that error&lt;/P&gt;
&lt;P class="p1"&gt;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.”&lt;/P&gt;
&lt;P class="p1"&gt;Cheers, Lou&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 18:48:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/claude-code-execution-call-format/m-p/141893#M1528</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-12-15T18:48:07Z</dc:date>
    </item>
  </channel>
</rss>

