Skip to main content
Glama

set_rich_menu_default

Set a rich menu as the default display for all users in LINE Bot MCP Server, ensuring consistent interface presentation across the LINE messaging platform.

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 sets the specified rich menu as the default by calling the LINE Messaging API's setDefaultRichMenu method and wrapping the response.
    async ({ richMenuId }) => { const response = await this.client.setDefaultRichMenu(richMenuId); return createSuccessResponse(response); },
  • Input schema definition using Zod for the 'richMenuId' parameter.
    { richMenuId: richMenuIdSchema.describe( "The ID of the rich menu to set as default.", ), },
  • The server.tool registration call that defines the tool name, description, input schema, and handler within the SetRichMenuDefault class's register method.
    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); }, );
  • src/index.ts:69-69 (registration)
    Top-level instantiation and registration of the SetRichMenuDefault tool on the main MCP server.
    new SetRichMenuDefault(messagingApiClient).register(server);

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/tndfame/mcp_management'

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