Skip to main content
Glama
acquo

LINE Bot MCP Server (SSE Support)

by acquo

get_profile

Retrieve LINE user profile details including display name, profile picture URL, status message, and language for LINE Official Account management.

Instructions

Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdNoThe user ID to get a profile. Defaults to DESTINATION_USER_ID.

Implementation Reference

  • The handler implementation for the "get_profile" tool.
    server.tool(
      "get_profile",
      "Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.",
      {
        userId: userIdSchema,
      },
      async ({ userId }) => {
        if (!userId) {
          return createErrorResponse(NO_USER_ID_ERROR);
        }
    
        try {
          const response = await this.client.getProfile(userId);
          return createSuccessResponse(response);
        } catch (error) {
          return createErrorResponse(`Failed to get profile: ${error.message}`);
        }
      },
    );
  • The registration of the "get_profile" tool within the McpServer.
    register(server: McpServer) {
      const userIdSchema = z
        .string()
        .default(this.destinationId)
        .describe(
          "The user ID to get a profile. Defaults to DESTINATION_USER_ID.",
        );
    
      server.tool(
        "get_profile",
        "Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.",
        {
          userId: userIdSchema,
        },
        async ({ userId }) => {
          if (!userId) {
            return createErrorResponse(NO_USER_ID_ERROR);
          }
    
          try {
            const response = await this.client.getProfile(userId);
            return createSuccessResponse(response);
          } catch (error) {
            return createErrorResponse(`Failed to get profile: ${error.message}`);
          }
        },
      );
    }

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/acquo/line-bot-mcp-server-sse'

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