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:
- Deploy your agent in a different Azure region to see if the issue disappears.
- Enable detailed logging so you can confirm whether the tool call is even being attempted.
- Test with a very simple MCP tool to check if the problem is with the tool or the environment.
- 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!