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
| Name | Required | Description | Default |
|---|---|---|---|
| pack_id | Yes | The ID of the pack |
Implementation Reference
- src/index.ts:311-321 (handler)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), }, ], }; }
- src/index.ts:168-181 (schema)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"], }, },
- src/freesound-client.ts:226-229 (helper)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; }
- src/freesound-client.ts:85-95 (schema)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; }