Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYesThe chat session ID to end

Implementation Reference

  • 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);
  • 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 }; });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itsanamune/retellsimp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server