Skip to main content
Glama

remix_audio

Create a remix of an audio track by specifying an audio URL and remix style. This tool transforms existing audio into new versions with different musical arrangements.

Instructions

Create a remix of an audio track

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
audio_urlYesURL of the audio file to remix
remix_styleNoStyle of remix to create
webhook_urlNoURL for callback upon completion

Implementation Reference

  • The main handler function that executes the remix_audio tool. It validates the audio_url input, makes a POST request to the MusicGPT API /remix endpoint, and returns the task details with instructions to check status.
    private async handleRemixAudio(args: any) { if (!args.audio_url) { throw new McpError(ErrorCode.InvalidParams, "audio_url is required"); } const response = await this.axiosInstance.post("/remix", { audio_url: args.audio_url, remix_style: args.remix_style, webhook_url: args.webhook_url, }); return { content: [ { type: "text", text: `Audio remix started!\n\n${JSON.stringify(response.data, null, 2)}\n\nUse get_conversion_by_id with the task_id to check the status.`, }, ], }; }
  • Defines the tool metadata including name, description, and input schema for remix_audio, used for tool listing and validation.
    { name: "remix_audio", description: "Create a remix of an audio track", inputSchema: { type: "object" as const, properties: { audio_url: { type: "string", description: "URL of the audio file to remix", }, remix_style: { type: "string", description: "Style of remix to create", }, webhook_url: { type: "string", description: "URL for callback upon completion", }, }, required: ["audio_url"], },
  • src/index.ts:703-704 (registration)
    Registers the remix_audio tool in the switch statement dispatcher for handling CallTool requests.
    case "remix_audio": return await this.handleRemixAudio(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