retell_get_agent_versions
Retrieve version history for an AI agent to track changes, compare iterations, and manage updates within the Retell AI platform.
Instructions
Retrieve the version history of an agent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>"
},
"name": "retell_get_agent_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent ID to get versions for |
Implementation Reference
- src/index.ts:592-605 (registration)Tool registration entry in the tools array, including name, description, and input schema definition.
{ name: "retell_get_agent_versions", description: "Retrieve the version history of an agent.", inputSchema: { type: "object", properties: { agent_id: { type: "string", description: "The agent ID to get versions for" } }, required: ["agent_id"] } }, - src/index.ts:595-604 (schema)Input schema for validating the tool's arguments, requiring an agent_id string.
inputSchema: { type: "object", properties: { agent_id: { type: "string", description: "The agent ID to get versions for" } }, required: ["agent_id"] } - src/index.ts:1183-1184 (handler)Handler implementation within the executeTool switch statement, which performs a GET request to the Retell API endpoint `/get-agent-versions/{agent_id}` using the shared retellRequest helper.
case "retell_get_agent_versions": return retellRequest(`/get-agent-versions/${args.agent_id}`, "GET"); - src/index.ts:1283-1285 (registration)MCP server registration for listing all tools, which exposes the retell_get_agent_versions tool via the tools array.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; }); - src/index.ts:1287-1293 (registration)MCP server registration for tool execution requests, which routes to executeTool based on the tool name.
// Register tool execution handler server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; try { const result = await executeTool(name, args as Record<string, unknown>); return {