Skip to main content
Glama

delete_video

Remove a video permanently from the Tavus MCP Server by providing its unique identifier to manage storage and content.

Instructions

Delete a video permanently

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
video_idYesUnique identifier for the video

Implementation Reference

  • The deleteVideo method is the handler that executes the delete_video tool logic. It extracts the video_id from arguments, makes a DELETE request to the API endpoint /videos/${video_id}, and returns a success message.
    private async deleteVideo(args: any) {
      const { video_id } = args;
      await this.axiosInstance.delete(`/videos/${video_id}`);
      return {
        content: [{
          type: 'text',
          text: `Successfully deleted video ${video_id}`,
        }],
      };
    }
  • src/index.ts:321-334 (registration)
    The delete_video tool is registered with its name, description, and input schema. The schema defines a required 'video_id' parameter of type string.
    {
      name: 'delete_video',
      description: 'Delete a video permanently',
      inputSchema: {
        type: 'object',
        properties: {
          video_id: {
            type: 'string',
            description: 'Unique identifier for the video',
          },
        },
        required: ['video_id'],
      },
    },
  • src/index.ts:710-711 (registration)
    Switch case that routes the 'delete_video' tool request to the deleteVideo handler method with the provided arguments.
    case 'delete_video':
      return await this.deleteVideo(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