Skip to main content
Glama

dereverb_audio

Remove reverb from audio files to enhance clarity and quality. Process audio via URL input for cleaner sound output.

Instructions

Remove reverb from audio

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audio_urlYesURL of the audio file to process
webhook_urlNoURL for callback upon completion

Implementation Reference

  • The main handler function for the 'dereverb_audio' tool. Validates the input audio_url, makes a POST request to the MusicGPT API '/dereverb' endpoint, and returns a response with task details and instructions for checking status.
    private async handleDereverbAudio(args: any) { if (!args.audio_url) { throw new McpError(ErrorCode.InvalidParams, "audio_url is required"); } const response = await this.axiosInstance.post("/dereverb", { audio_url: args.audio_url, webhook_url: args.webhook_url, }); return { content: [ { type: "text", text: `Audio de-reverb started!\n\n${JSON.stringify(response.data, null, 2)}\n\nUse get_conversion_by_id with the task_id to check the status.`, }, ], }; }
  • Tool registration in the TOOLS array including name, description, and input schema definition for validation. Used by the MCP ListTools handler.
    { name: "dereverb_audio", description: "Remove reverb from audio", inputSchema: { type: "object" as const, properties: { audio_url: { type: "string", description: "URL of the audio file to process", }, webhook_url: { type: "string", description: "URL for callback upon completion", }, }, required: ["audio_url"], }, },
  • src/index.ts:691-692 (registration)
    Dispatch case in the CallToolRequestHandler switch statement that routes calls to the 'dereverb_audio' handler.
    case "dereverb_audio": return await this.handleDereverbAudio(args);

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/pasie15/mcp-server-musicgpt'

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