Foundry Responses API returns function tool <server>___<tool> as <server>.<tool> on claude-sonnet-4-6 #459
Unanswered
Eduardo Nicastro (edumuellerFSL)
asked this question in
Product Feedback and Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Technical Feedback
On a claude-sonnet-4-6 deployment, the Foundry Responses API returns function calls with a dot where the tool name has a triple underscore. A toolbox publishes MCP tools as
<server>___<tool>, and the function call comes back as<server>.<tool>.Sending a function tool named
docs___searchstraight to{project}/openai/v1/responseswithtool_choice"required"returnsdocs.searchfor claude-sonnet-4-6 anddocs___searchfor gpt-5-mini. Replaying the conversation with the original___name is accepted.A hosted agent using the toolbox (
AddFoundryToolboxes, Responses protocol 2.0.0) can't call toolbox tools because of this. FunctionInvokingChatClient reportsRequested function "<server>.<tool>" not found., and the next model call fails with HTTP 400:Packages: Microsoft.Agents.AI.Foundry.Hosting 1.21.0-preview.260911.1, Azure.AI.Projects 3.0.0-beta.2, Microsoft.Extensions.AI.OpenAI 10.10.0, .NET 10.0.
Desired Outcome
The function call name matches the name the toolbox published (
<server>___<tool>), as it already does for gpt-5-mini.Current Workaround
A DelegatingChatClient below the function invoker maps
<server>.<tool>back to<server>___<tool>when that tool is registered, and drops the content'sRawRepresentation, becauseOpenAIResponsesChatClientwould otherwise replay the raw item with the dotted name.All reactions