Skip to main content
Glama

delete_replica

Permanently remove a video replica by its unique identifier to manage storage and resources in the Tavus MCP Server.

Instructions

Delete a replica permanently

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
replica_idYesUnique identifier for the replica

Implementation Reference

  • The deleteReplica handler method that executes the tool logic. It extracts replica_id from args, makes a DELETE request to /replicas/{replica_id} endpoint, and returns a success message.
    private async deleteReplica(args: any) {
      const { replica_id } = args;
      await this.axiosInstance.delete(`/replicas/${replica_id}`);
      return {
        content: [{
          type: 'text',
          text: `Successfully deleted replica ${replica_id}`,
        }],
      };
    }
  • Input schema definition for delete_replica tool. Defines a required 'replica_id' property of type string with description 'Unique identifier for the replica'.
    inputSchema: {
      type: 'object',
      properties: {
        replica_id: {
          type: 'string',
          description: 'Unique identifier for the replica',
        },
      },
      required: ['replica_id'],
    },
  • src/index.ts:200-213 (registration)
    Tool registration for delete_replica. Registers the tool with name 'delete_replica', description 'Delete a replica permanently', and the input schema.
    {
      name: 'delete_replica',
      description: 'Delete a replica permanently',
      inputSchema: {
        type: 'object',
        properties: {
          replica_id: {
            type: 'string',
            description: 'Unique identifier for the replica',
          },
        },
        required: ['replica_id'],
      },
    },
  • Switch case that dispatches delete_replica tool calls to the deleteReplica handler method, passing the request arguments.
    case 'delete_replica':
      return await this.deleteReplica(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