Skip to main content
Glama
timjrobinson

Freesound MCP Server

by timjrobinson

get_user

Retrieve user profile information from Freesound.org by providing a username to access account details and activity data.

Instructions

Get information about a Freesound user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesThe username of the user

Implementation Reference

  • MCP server tool handler for 'get_user': extracts username from args, calls FreesoundClient.getUser, and returns JSON stringified user data.
    case "get_user": {
      const user = await freesoundClient.getUser(args.username as string);
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(user, null, 2),
          },
        ],
      };
    }
  • src/index.ts:132-145 (registration)
    Registration of the 'get_user' tool in the ListTools handler, including name, description, and input schema.
    {
      name: "get_user",
      description: "Get information about a Freesound user",
      inputSchema: {
        type: "object",
        properties: {
          username: {
            type: "string",
            description: "The username of the user",
          },
        },
        required: ["username"],
      },
    },
  • Input schema for the 'get_user' tool: requires 'username' string.
    inputSchema: {
      type: "object",
      properties: {
        username: {
          type: "string",
          description: "The username of the user",
        },
      },
      required: ["username"],
    },
  • Core implementation of getUser in FreesoundClient: makes API GET request to /users/{username}/ and returns the User data.
    async getUser(username: string): Promise<User> {
      const response = await this.axiosInstance.get(`/users/${username}/`);
      return response.data;
    }
  • TypeScript interface defining the User object returned by getUser.
    export interface User {
      url: string;
      username: string;
      about: string;
      home_page: string;
      avatar: {
        small: string;
        medium: string;
        large: string;
      };
      date_joined: string;
      num_sounds: number;
      sounds: string;
      num_packs: number;
      packs: string;
      num_posts: number;
      num_comments: number;
      bookmark_categories: string;
    }

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