retell_end_chat
Terminate an active chat session to manage conversation flow and free up resources on the Retell AI platform.
Instructions
End an active chat session.
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": {
"chat_id": "<chat_id>"
},
"name": "retell_end_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | The chat session ID to end |
Implementation Reference
- src/index.ts:1149-1150 (handler)Handler implementation for retell_end_chat tool: sends PATCH request to Retell API /end-chat endpoint with provided arguments.
case "retell_end_chat": return retellRequest("/end-chat", "PATCH", args); - src/index.ts:298-310 (schema)Input schema for retell_end_chat tool defining the required chat_id parameter.
name: "retell_end_chat", description: "End an active chat session.", inputSchema: { type: "object", properties: { chat_id: { type: "string", description: "The chat session ID to end" } }, required: ["chat_id"] } }, - src/index.ts:1283-1285 (registration)Registration of the tools list handler which includes the retell_end_chat tool schema in the returned tools array.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });