https://retellai.com/?utm_source=discord&utm_medium=seo logo
Agent Ignores MCP Tool Response – How to Handle Te...
# ❓・bug-report
e
Hi, I need to use an MCP in my agent. The MCP tool returns a list of products like this: "content": [ { "type": "text", "text": "{\n "name": "Gucci GG1342S Sunglasses Men's Pilot",\n "price": "$199.95"\n}" }, { "type": "text", "text": "{\n "name": "Gucci GG1730S Sunglasses Men's Square Shape",\n "price": "$319.95"\n}" } ] However, the agent seems to ignore the result of the tool call. I’ve tried adding response variables in the MCP node, but it didn’t help. Any ideas would be appreciated.
s
Your agent ignores the MCP tool response because: The output is plain text, not structured JSON. The agent isn’t explicitly told to use it. Most agents summarize or skip tool output unless configured to return it.
e
Thank you for your response @shahretell . How do I explicitly tell Retell agent to use the output?
I've configured my MCP now to return structured content.
s
Now, in your agent’s prompt or tool config, explicitly tell the agent how to use the MCP output. For example: “When the MCP tool returns a product list, include the names and prices in your spoken response.” This ensures the LLM doesn’t skip over it. Also, map the JSON fields in the MCP node’s response variables so the agent can reference them directly in its reply.