Skip to main content
Glama

liara_get_user

Retrieve comprehensive user account details including subscription plans and team information from the Liara cloud platform.

Instructions

Get comprehensive user information including plans and teams

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for retrieving Liara user information. Fetches from /v1/me endpoint, transforms response to UserInfo format.
    export async function getUserInfo(client: LiaraClient): Promise<UserInfo> {
        const response = await client.get<UserInfoResponse>('/v1/me');
        
        // Transform the API response to match the expected format
        const userInfo: UserInfo = {
            // Core user fields
            ...response.user,
            // Override with specific mappings
            createdAt: response.user.joined_at,
            // Add plans and database versions
            plans: {
                mail: response.plans?.mail,
                projects: response.plans?.projects,
            },
            databaseVersions: response.databaseVersions,
            defaultDatabaseVersions: response.defaultDatabaseVersions,
        };
        
        return userInfo;
    }
  • Output schema/type definition for the user information returned by the tool.
    export interface UserInfo {
        _id: string;
        email: string;
        username?: string;
        firstName?: string;
        lastName?: string;
        fullname?: string;
        phone?: string;
        plans?: {
            app?: any[];
            database?: any[];
            vm?: any[];
            mail?: any;
            projects?: any;
        };
        teams?: Array<{
            _id: string;
            name: string;
        }>;
        createdAt?: string;
        joined_at?: string;
        databaseVersions?: any;
        defaultDatabaseVersions?: any;
        [key: string]: any; // Allow additional fields
    }
  • Raw API response type used internally by the handler.
    export interface UserInfoResponse {
        user: {
            _id: string;
            email: string;
            fullname?: string;
            username?: string;
            firstName?: string;
            lastName?: string;
            phone?: string;
            nationalCode?: string;
            joined_at?: string;
            freeCreditTime?: number;
            remainingFreeCredit?: number;
            hasPassword?: boolean;
            emailVerifiedAt?: string;
            phoneVerifiedAt?: string;
            isVerified?: boolean;
            storage?: {
                namespace: string;
                status: string;
            };
            avatar?: string;
            twoFA?: boolean;
            isEmailChangeDeadline?: boolean;
            isPhoneChangeDeadline?: boolean;
            isTeam?: boolean;
            hasFreeVM?: boolean;
            accountType?: string;
            minCreditAmount?: number;
            isManualMinCredit?: boolean;
            legacyNetworkFeature?: boolean;
            hasSucceedPayment?: boolean;
            privateNetworkFeature?: boolean;
            legacyObjectStorageFeature?: boolean;
            legacyDomainsFeature?: boolean;
            currentSubscriptionPlan?: any;
            gitProviderIntegrations?: any[];
            gitRepositoryIntegrations?: any[];
        };
        databaseVersions?: {
            mysql?: Array<{ label: string; value: string }>;
            mariadb?: Array<{ label: string; value: string }>;
            postgres?: Array<{ label: string; value: string; postgisValue?: string; pgvectorValue?: string }>;
            mssql?: Array<{ label: string; value: string }>;
            mongodb?: Array<{ label: string; value: string }>;
            redis?: Array<{ label: string; value: string }>;
            elasticsearch?: Array<{ label: string; value: string }>;
            rabbitmq?: Array<{ label: string; value: string }>;
        };
        defaultDatabaseVersions?: {
            mysql?: string;
            mariadb?: string;
            postgres?: string;
            mssql?: string;
            mongodb?: string;
            redis?: string;
            elasticsearch?: string;
            rabbitmq?: string;
        };
        plans?: {
            mail?: any;
            projects?: any;
        };
    }
  • Helper function that calls getUserInfo to provide account listing (single user currently).
    export async function listAccounts(client: LiaraClient): Promise<UserInfo[]> {
        // This might be a different endpoint, but for now we return the current user
        const userInfo = await getUserInfo(client);
        return [userInfo];
    }
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 'Get' which implies a read operation, but doesn't disclose behavioral traits like authentication requirements, rate limits, error conditions, or what 'comprehensive' entails. The description is too vague to provide meaningful transparency beyond the basic operation.

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 directly states the tool's purpose without unnecessary words. It's appropriately sized for a simple retrieval tool and front-loads the essential information.

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 simplicity (0 parameters, no output schema), the description is minimally adequate. However, without annotations and with sibling tools that perform similar 'get' operations, it lacks context about what makes this tool unique or when to use it. The description covers the basic purpose but leaves gaps in usage and behavioral context.

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 tool has 0 parameters with 100% schema description coverage, so the schema fully documents the absence of parameters. The description doesn't need to add parameter information, and it appropriately doesn't mention any parameters. This meets the baseline expectation for a parameterless tool.

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: 'Get comprehensive user information including plans and teams.' It specifies the verb ('Get') and resource ('user information') with additional details about what information is included. However, it doesn't explicitly differentiate from sibling tools like 'liara_get_app' or 'liara_get_plan' beyond the resource type.

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, context for retrieving user information, or how it differs from other 'get' tools in the sibling list. The agent must infer usage based on the tool name alone.

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/razavioo/liara-mcp'

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