Skip to main content
Glama

get_user_profile

Retrieve authenticated user profile information including email, display name, and account details from the Restream streaming platform.

Instructions

Get the authenticated user profile information including email, display name, and account details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that authenticates and fetches the user profile from the Restream API endpoint '/user/profile'.
    async getUserProfile(): Promise<UserProfile> { try { const response = await this.axiosInstance.get<UserProfile>('/user/profile'); return response.data; } catch (error) { throw this.handleError(error, 'Failed to fetch user profile'); } }
  • MCP CallToolRequest handler that invokes RestreamClient.getUserProfile() and returns the profile as formatted JSON text content.
    case 'get_user_profile': { const profile = await restreamClient.getUserProfile(); return { content: [ { type: 'text', text: JSON.stringify(profile, null, 2), }, ], }; }
  • src/index.ts:42-50 (registration)
    Tool registration in the MCP tools array, defining name, description, and input schema (no required parameters).
    { name: 'get_user_profile', description: 'Get the authenticated user profile information including email, display name, and account details', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • TypeScript interface defining the structure of the UserProfile object returned by the tool.
    export interface UserProfile { id: string; email: string; displayName: string; username?: string; createdAt?: 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/shaktech786/restream-mcp-server'

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