https://retellai.com/?utm_source=discord&utm_medium=seo logo
- i have connected an MCP server with tools to che...
# ❓・ai-evy-support
d
@AI Evy - i have connected an MCP server with tools to check availability and schedule an appointment. the tools are running and giving back a response. However, the agent is not responding after the tool responds. If I follow up with the agent, it is responding as expected. how can i fix this?
a
Thanks for tagging me @drivephaseco_51783. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, there are a few key areas to check when your MCP tools are executing but the agent isn't responding afterward: 1. Update your prompt to explicitly guide when to use the MCP tool [(1) ]() The documentation emphasizes including explicit instructions in your prompt about when to invoke the MCP tool . For example:
Copy code
When user states his name and phone number, please call tool `verify_user` function.
2. Check your MCP server endpoints [(2) ]() Ensure your MCP server exposes the required endpoints [(3) ]() : -
/list_tools
endpoint returning available tools -
/call_tool
endpoint for tool execution - Proper error handling and response formats You can test your server with:
curl -X POST [your-mcp-endpoint]/list_tools
3. Verify MCP server URL format [(2) ]() Retell's MCP client works with the
/mcp
endpoint, not
/sse
. If your server is using SSE format, this could cause connection issues where tools execute but responses don't flow back properly . 4. Configure response variables [(1) ]() , [(4) ]() Make sure you're extracting values from the MCP tool response and saving them as dynamic variables for use later in the conversation [(1) ]() , [(4) ]() . This ensures the agent can reference the tool results in follow-up responses. 5. Check timeout settings [(5) ]() Verify your timeout configuration (default is 10,000 ms) to ensure the agent isn't timing out while waiting for the MCP response. If the issue persists, I'd recommend testing your MCP endpoint independently to confirm it's returning responses in the expected JSON format.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) [[2] MCP server connection issue](https://discord.com/channels/1186424376300679209/1401934359182708857) [[3] MCPs not loading](https://discord.com/channels/1186424376300679209/1400851768027385950) [[4] MCP Node](https://docs.retellai.com/build/conversation-flow/mcp-node) [[5] Connect any AI Voice Agent to MCP with Retell AI MCP Node (Guide) | Retell AI](https://www.retellai.com/blog/connect-any-ai-voice-agent-to-mcp-with-retell-ai-mcp-node) ​
d
@AI Evy - responses are coming back correctly because when i follow up with the agent, the actions are happening as expected.
a
Thanks for the follow-up, @drivephaseco_51783. I'll get back to you soon.
### Answer Since your MCP tools are executing correctly and responses are coming back (as evidenced by the agent working when you follow up) , this sounds like a prompt engineering issue where the agent isn't being explicitly instructed to respond after tool execution [(1) ]() . The documentation emphasizes that you need to update your prompt to explicitly guide the agent's behavior after MCP tool calls . Here are specific steps to address this: 1. Add explicit post-tool response instructions to your prompt Include clear guidance about what the agent should do after receiving MCP tool responses. For example:
Copy code
After calling the check_availability tool, immediately inform the user about the available time slots.
After calling the schedule_appointment tool, confirm the appointment details with the user.
2. Configure response variables properly Make sure you're extracting values from the MCP tool response and saving them as dynamic variables for use in follow-up responses . For example, if your availability check returns:
Copy code
json
{
 "properties": {
 "user": {
 "name": "John Doe",
 "age": 26
 }
 }
}
You can save
properties.user.name
as a variable like
user_name
and reference it later using
{{user_name}}
. 3. Include conversation flow guidance Add instructions like: "When user states his name and phone number, please call tool
verify_user
function" but also specify what to do after: "After receiving the verification response, proceed to confirm the appointment details with the user." Since your tools are working correctly when you follow up, the issue is likely that the agent needs more explicit prompting to respond immediately after tool execution rather than waiting for additional user input.
​ To learn more, see the sources I considered: [[1] MCP](https://docs.retellai.com/build/single-multi-prompt/mcp) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.