Skip to main content
Glama

get_user_profile

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

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 fetches the user profile from the Restream API via HTTP GET request.
    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'); } }
  • src/index.ts:42-50 (registration)
    MCP tool registration defining the tool name, description, and input schema (no parameters required).
    { name: 'get_user_profile', description: 'Get the authenticated user profile information including email, display name, and account details', inputSchema: { type: 'object', properties: {}, required: [], }, },
  • MCP CallToolRequestSchema handler case that invokes the RestreamClient.getUserProfile() and returns JSON-formatted response.
    case 'get_user_profile': { const profile = await restreamClient.getUserProfile(); return { content: [ { type: 'text', text: JSON.stringify(profile, null, 2), }, ], }; }
  • TypeScript interface defining the structure of the UserProfile 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