Skip to main content
Glama
acquo

LINE Bot MCP Server (SSE Support)

by acquo

set_rich_menu_default

Set a rich menu as the default display for all users in LINE Bot conversations, ensuring consistent interface presentation.

Instructions

Set a rich menu as the default rich menu.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
richMenuIdYesThe ID of the rich menu to set as default.

Implementation Reference

  • The handler function that executes the setRichMenuDefault tool logic using the LINE Messaging API client.
      async ({ richMenuId }) => {
        const response = await this.client.setDefaultRichMenu(richMenuId);
        return createSuccessResponse(response);
      },
    );
  • The schema definition for the set_rich_menu_default tool input parameters.
    {
      richMenuId: richMenuIdSchema.describe(
        "The ID of the rich menu to set as default.",
      ),
    },
  • The registration logic for the set_rich_menu_default tool in the MCP server.
    register(server: McpServer) {
      const richMenuIdSchema = z
        .string()
        .describe("The ID of the rich menu to set as default.");
    
      server.tool(
        "set_rich_menu_default",
        "Set a rich menu as the default rich menu.",
        {
          richMenuId: richMenuIdSchema.describe(
            "The ID of the rich menu to set as default.",
          ),
        },
        async ({ richMenuId }) => {
          const response = await this.client.setDefaultRichMenu(richMenuId);
          return createSuccessResponse(response);
        },
      );
    }

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