Skip to main content
Glama

cancel_rich_menu_default

Remove the default rich menu from a LINE Official Account to stop displaying it to users.

Instructions

Cancel the default rich menu.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that cancels the default rich menu by calling the LINE MessagingApiClient's cancelDefaultRichMenu method and returns a formatted success response.
    async () => { const response = await this.client.cancelDefaultRichMenu(); return createSuccessResponse(response); },
  • The register method of CancelRichMenuDefault class that defines and registers the MCP tool named 'cancel_rich_menu_default' with its description, empty input schema, and handler function.
    register(server: McpServer) { server.tool( "cancel_rich_menu_default", "Cancel the default rich menu.", {}, async () => { const response = await this.client.cancelDefaultRichMenu(); return createSuccessResponse(response); }, ); }
  • src/index.ts:70-70 (registration)
    Instantiates the CancelRichMenuDefault tool with the messaging API client and calls its register method to add the tool to the MCP server.
    new CancelRichMenuDefault(messagingApiClient).register(server);
  • src/index.ts:25-25 (registration)
    Import statement for the CancelRichMenuDefault tool class.
    import CancelRichMenuDefault from "./tools/cancelRichMenuDefault.js";

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