Copilot Studio agent using Microsoft Learn MCP works in Test Pane but not consistently in Teams
Hi everyone,
I’m testing an agent built in Microsoft Copilot Studio that uses the Microsoft Learn documentation MCP tools to retrieve Microsoft documentation and answer user questions.
I’m facing a strange difference between the Copilot Studio Test Pane and Microsoft Teams.
The issue is:
In Copilot Studio Test Pane:
- I ask a question → I get the correct answer.
- I ask the same question again → I get the answer again.
- I can repeat the question multiple times → The agent continues to respond correctly.
- The Microsoft Learn MCP tool is able to retrieve the relevant documentation.
In Microsoft Teams:
- I ask the question → I get an answer.
- When I ask the same or similar question again, sometimes Teams becomes silent / doesn't return an answer.
- The same question still works correctly in the Copilot Studio Test Pane.
So the behavior looks something like:
>
>
The agent is using Microsoft Learn MCP tools for retrieving Microsoft documentation, so I'm wondering whether the issue could be related to how the MCP tool call, grounding, conversation state, or published agent is handled through the Teams channel.
I have already tried republishing the agent and starting a fresh Teams conversation.
Has anyone experienced this with a Copilot Studio agent + Microsoft Learn MCP Server/tools + Teams?
I'm particularly interested in knowing what I should check in Application Insights / Copilot Studio logs to determine whether:
- The Teams request is reaching the agent.
- The Microsoft Learn MCP tool is being called on subsequent turns.
- The MCP tool returns results but the agent doesn't generate a response.
- Conversation/session state is affecting the second or third question.
- There is a difference between the Test Pane runtime and the Teams published runtime.
- Grounding / "Allow ungrounded responses" is affecting subsequent turns.
- Teams is using an older published version or cached conversation state.
Any suggestions or similar experiences would be really helpful. Thanks!