https://retellai.com/?utm_source=discord&utm_medium=seo logo
I'm getting a 500 Internal Server Error when tryin...
# ❓・ai-evy-support
j
@AI Evy I'm getting a 500 Internal Server Error when trying to add MCP tools to my agent. Error details: - Agent ID: agent_3ae07ac6335e2d637f52334083 - MCP ID: mcp-1769467711284 - MCP Server: https://ai-mcp.payplan.dev - Error: GET https://api.retellai.com/get-mcp-tools returns 500 Additionally, I'm seeing CORS errors from your own API in the console: - api.retellai.com/get-stripe-status - CORS blocked - api.retellai.com/list-agents - CORS blocked My MCP server manifest is correctly formatted per spec at: https://ai-mcp.payplan.dev/.well-known/mcp/manifest.json This appears to be a backend issue on Retell's side, not my server.
a
Thanks for tagging me @J3R. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, a 500 Internal Server Error when calling the Get MCP Tools endpoint indicates a server-side issue. [(1) ]() The correct endpoint format for retrieving MCP tools is:
Copy code
GET /get-mcp-tools/{agent_id}
With required parameters: -
agent_id
(path parameter) - Unique id of the agent -
mcp_id
(query parameter) - The ID of the MCP server to get tools from Here's the documented SDK usage:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const mcpToolDefinitions = await client.mcpTool.getMcpTools('oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD', {
  mcp_id: 'mcp-server-1',
}) ;
console.log(mcpToolDefinitions) ;
However, if your request is correctly formatted and you're still receiving a 500 error, this typically points to a backend issue that needs to be investigated by the Retell team. Similar 500 Internal Server Error issues have been reported by other users with different endpoints, and the Retell team has worked to resolve them. [(2) ]() , [(3) ]() Recommended next steps: 1. Verify your MCP server is accessible and returning valid tool definitions 2. Contact Retell support directly with your specific agent ID and MCP ID for investigation For additional support: - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] Get MCP Tools](https://docs.retellai.com/api-references/get-mcp-tools) [[2] internal server error on create knowledge base by API](https://discord.com/channels/1186424376300679209/1391417148215136376) [[3] Getting 500 Internal Server Error](https://discord.com/channels/1186424376300679209/1436317306102747328) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
how do i contact support
@AI Evy how do i contqact support
a
Thanks for the follow-up, @J3R. I'll get back to you soon.
### Answer To contact Retell AI support, you can email support@retellai.com. [(1) ]() For billing or refund-related issues specifically, the support team at that email address can help investigate your case. You can also: - Visit [Contact Sales]() [(2) ]() - Visit [) Given your 500 Internal Server Error issue with MCP tools, I'd recommend emailing support@retellai.com with your agent ID, MCP ID, and error details so they can investigate the backend issue.
​ To learn more, see the sources I considered: [[1] Support](https://discord.com/channels/1186424376300679209/1433077970066735194) [[2] 404 Error on Create a Phone Call](https://retell.discourse.group/t/404-error-on-create-a-phone-call/22) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.