What could be causing a deployed agent using MCP tool in Azure AI Foundry to get something went wrong error on azure bot service

Fajra Risqulla 30 Reputation points
2025-12-02T09:37:03.1633333+00:00

My agent is working well in playground, it can call/use mcp tool, but once I publish to microsoft teams and test it in bot service webchat, it return "somthing went wrong"

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
{count} vote

Answer accepted by question author
  1. Anshika Varshney 3,795 Reputation points Microsoft External Staff Moderator
    2025-12-02T12:26:39.4833333+00:00

    Hi Fajra Risqulla,

    Thank you for reaching out on the Microsoft Q&A.
    It seems like your agent’s MCP tool is working correctly in the playground but failing only after you deploy it through Azure AI Bot Service. This is a common pattern that others have reported as well.

    One of the biggest causes appears to be region-related issues. Some users have found that MCP tools work in one Azure region but fail in another. For example, an agent that failed in West Europe worked immediately when deployed in Sweden Central. This suggests that MCP functionality may not be fully supported or consistent across all regions yet.

    Another possibility is that the Bot Service runtime behaves differently from the playground. In several threads, users noted that the agent lists the tool correctly but never actually triggers a tool call once deployed. This can happen because of integration issues, restrictions in the hosted environment, or runtime differences with network or permissions.

    To troubleshoot, you can try a few things:

    1. Deploy your agent in a different Azure region to see if the issue disappears.
    2. Enable detailed logging so you can confirm whether the tool call is even being attempted.
    3. Test with a very simple MCP tool to check if the problem is with the tool or the environment.
    4. Compare your playground settings with the bot’s runtime to make sure nothing differs in credentials or configuration.

    This issue is likely not your code. It’s usually a region or runtime limitation with MCP in Azure Bot Service. Testing in another region is often the quickest way to confirm.

    Please let me know if there are any remaining questions or additional details, I can help with, I’ll be glad to provide further clarification or guidance.

    Thankyou!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.