Skip to main content
Glama

apply_preset

Apply predefined audio processing presets to optimize files for specific use cases like game audio, voice processing, or music mastering by specifying input/output paths and preset name.

Instructions

Apply predefined audio processing preset optimized for specific use cases

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputFileYesPath to input audio file
outputFileYesPath for output file
presetYesPreset name to apply
overwriteNoWhether to overwrite existing output files

Implementation Reference

  • Handler for apply_preset tool: parses input using ApplyPresetInputSchema, retrieves preset via getPreset, processes audio file using audioProcessor.processAudioFile, and returns result augmented with preset information.
    case 'apply_preset': { const input = ApplyPresetInputSchema.parse(args); const preset = getPreset(input.preset); const result = await audioProcessor.processAudioFile( input.inputFile, input.outputFile, preset.operations, (args as any).overwrite || false ); return { content: [ { type: 'text', text: JSON.stringify({ ...result, presetUsed: preset.name, presetDescription: preset.description }, null, 2) } ] }; }
  • Zod schema for validating apply_preset tool inputs: inputFile (audio path), outputFile, preset name.
    export const ApplyPresetInputSchema = z.object({ inputFile: FilePathSchema, outputFile: z.string().min(1), preset: PresetNameSchema });
  • Tool registration object defining name 'apply_preset', description, and detailed inputSchema for MCP tool listing and validation.
    export const applyPresetTool: Tool = { name: 'apply_preset', description: 'Apply predefined audio processing preset optimized for specific use cases', inputSchema: { type: 'object', properties: { inputFile: { type: 'string', description: 'Path to input audio file' }, outputFile: { type: 'string', description: 'Path for output file' }, preset: { type: 'string', description: 'Preset name to apply', enum: [ 'game-audio-mobile', 'game-audio-desktop', 'game-audio-console', 'elevenLabs-optimize', 'voice-processing', 'music-mastering', 'sfx-optimization', 'deep-mechanical', 'bright-crystalline', 'variation-pack', 'layered-impact', 'space-ambient', 'punchy-game-sfx' ] }, overwrite: { type: 'boolean', description: 'Whether to overwrite existing output files', default: false } }, required: ['inputFile', 'outputFile', 'preset'] } };
  • Includes applyPresetTool in the exported tools array for MCP server registration via registerTools.
    applyPresetTool,

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/DeveloperZo/mcp-audio-tweaker'

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