Skip to main content
Glama
timjrobinson

Freesound MCP Server

by timjrobinson

get_pack

Retrieve detailed information about sound packs from Freesound.org by providing the pack ID, enabling access to metadata and content descriptions.

Instructions

Get information about a sound pack

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pack_idYesThe ID of the pack

Implementation Reference

  • MCP tool handler for 'get_pack': calls FreesoundClient.getPack and returns JSON response.
    case "get_pack": { const pack = await freesoundClient.getPack(args.pack_id as number); return { content: [ { type: "text", text: JSON.stringify(pack, null, 2), }, ], }; }
  • Input schema and metadata definition for the 'get_pack' tool, registered in ListTools response.
    { name: "get_pack", description: "Get information about a sound pack", inputSchema: { type: "object", properties: { pack_id: { type: "number", description: "The ID of the pack", }, }, required: ["pack_id"], }, },
  • Core implementation fetching pack data from Freesound API via HTTP GET.
    async getPack(packId: number): Promise<Pack> { const response = await this.axiosInstance.get(`/packs/${packId}/`); return response.data; }
  • TypeScript interface defining the structure of Pack data returned by getPack.
    export interface Pack { id: number; url: string; description: string; created: string; name: string; username: string; num_sounds: number; sounds: string; num_downloads: number; }

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