Skip to main content
Glama

delete_speech

Remove a speech permanently from the Tavus MCP Server using its unique identifier to manage synthesized audio content.

Instructions

Delete a speech permanently

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
speech_idYesUnique identifier for the speech

Implementation Reference

  • The deleteSpeech handler method that executes the tool logic - makes a DELETE request to the API endpoint /speech/{speech_id} and returns a success message
    private async deleteSpeech(args: any) {
      const { speech_id } = args;
      await this.axiosInstance.delete(`/speech/${speech_id}`);
      return {
        content: [{
          type: 'text',
          text: `Successfully deleted speech ${speech_id}`,
        }],
      };
    }
  • Tool schema definition with name, description, and inputSchema specifying speech_id as a required string parameter
    {
      name: 'delete_speech',
      description: 'Delete a speech permanently',
      inputSchema: {
        type: 'object',
        properties: {
          speech_id: {
            type: 'string',
            description: 'Unique identifier for the speech',
          },
        },
        required: ['speech_id'],
      },
    },
  • src/index.ts:756-757 (registration)
    Switch case routing that maps 'delete_speech' tool calls to the deleteSpeech handler method
    case 'delete_speech':
      return await this.deleteSpeech(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