Skip to main content
Glama

delete_conversation

Permanently remove a conversation from the Tavus MCP Server using its unique identifier to manage video generation and AI interactions.

Instructions

Delete a conversation permanently

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conversation_idYesUnique identifier for the conversation

Implementation Reference

  • The deleteConversation method is the handler that executes the delete_conversation tool logic. It extracts conversation_id from args, makes a DELETE request to /conversations/{conversation_id}, and returns a success message.
    private async deleteConversation(args: any) {
      const { conversation_id } = args;
      await this.axiosInstance.delete(`/conversations/${conversation_id}`);
      return {
        content: [{
          type: 'text',
          text: `Successfully deleted conversation ${conversation_id}`,
        }],
      };
    }
  • src/index.ts:428-441 (registration)
    Registration of the delete_conversation tool with its name, description, and inputSchema defining the required conversation_id parameter.
    {
      name: 'delete_conversation',
      description: 'Delete a conversation permanently',
      inputSchema: {
        type: 'object',
        properties: {
          conversation_id: {
            type: 'string',
            description: 'Unique identifier for the conversation',
          },
        },
        required: ['conversation_id'],
      },
    },
  • Switch case routing that maps the 'delete_conversation' tool name to the deleteConversation handler method.
    case 'delete_conversation':
      return await this.deleteConversation(request.params.arguments);

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/rakeshdavid/Tavus-MCP'

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