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;
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states this retrieves 'authenticated user' information, implying it requires authentication, which is useful behavioral context. However, it doesn't disclose other traits like rate limits, error conditions, or whether this is a read-only operation (though implied by 'Get'). For a tool with zero annotation coverage, this leaves significant gaps in behavioral understanding.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose and includes specific examples of returned data. Every word earns its place with no redundancy or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (0 parameters, no output schema, no annotations), the description is adequate but has clear gaps. It specifies what data is returned, which helps, but lacks information on authentication requirements, error handling, or return format. For a simple read operation, this is minimally viable but could be more complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so the schema fully documents the lack of inputs. The description adds no parameter information, which is appropriate here. Baseline is 4 for 0 parameters, as there's nothing to compensate for, and the description doesn't contradict the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('authenticated user profile information'), listing specific data fields returned (email, display name, account details). It doesn't distinguish from sibling tools, but none of the siblings appear to retrieve user profiles, making differentiation less critical.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication requirements), nor does it clarify if this is for the current user versus looking up other users. With siblings focused on channels and streams, there's no explicit comparison or exclusion criteria provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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