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
| Name | Required | Description | Default |
|---|---|---|---|
| speech_id | Yes | Unique identifier for the speech |
Implementation Reference
- src/index.ts:1076-1085 (handler)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}`, }], }; } - src/index.ts:652-665 (schema)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);