Skip to main content
Glama
timjrobinson

Freesound MCP Server

by timjrobinson

get_sound

Retrieve detailed information about specific audio samples from Freesound.org using sound IDs and content descriptors to analyze sound characteristics and metadata.

Instructions

Get detailed information about a specific sound

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sound_idYesThe ID of the sound
descriptorsNoComma-separated list of content-based descriptors to include

Implementation Reference

  • MCP tool handler for 'get_sound': extracts sound_id and optional descriptors from arguments, calls FreesoundClient.getSound, stringifies the result as JSON, and returns it as text content.
    case "get_sound": { const sound = await freesoundClient.getSound( args.sound_id as number, args.descriptors as string | undefined ); return { content: [ { type: "text", text: JSON.stringify(sound, null, 2), }, ], }; }
  • src/index.ts:66-83 (registration)
    Registration of the 'get_sound' tool in the ListTools response, including its name, description, and input schema definition.
    { name: "get_sound", description: "Get detailed information about a specific sound", inputSchema: { type: "object", properties: { sound_id: { type: "number", description: "The ID of the sound", }, descriptors: { type: "string", description: "Comma-separated list of content-based descriptors to include", }, }, required: ["sound_id"], }, },
  • Core helper method in FreesoundClient that performs the API request to retrieve detailed sound information from Freesound.org using axios, optionally including specified descriptors.
    async getSound(soundId: number, descriptors?: string): Promise<Sound> { const response = await this.axiosInstance.get(`/sounds/${soundId}/`, { params: { descriptors: descriptors, }, }); return response.data; }

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/timjrobinson/FreesoundMCPServer'

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