Skip to main content
Glama
acquo

LINE Bot MCP Server (SSE Support)

by acquo

delete_rich_menu

Remove a rich menu from your LINE Official Account by specifying its ID to manage interface elements and maintain account organization.

Instructions

Delete a rich menu from your LINE Official Account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
richMenuIdYesThe ID of the rich menu to delete.

Implementation Reference

  • The handler for the 'delete_rich_menu' tool, which takes a richMenuId and calls the MessagingApiClient's deleteRichMenu method.
    server.tool(
      "delete_rich_menu",
      "Delete a rich menu from your LINE Official Account.",
      {
        richMenuId: richMenuIdSchema.describe(
          "The ID of the rich menu to delete.",
        ),
      },
      async ({ richMenuId }) => {
        try {
          const response = await this.client.deleteRichMenu(richMenuId);
          return createSuccessResponse(response);
        } catch (error) {
          return createErrorResponse(
            `Failed to delete rich menu: ${error.message}`,
          );
        }
      },
    );
  • The registration method for the DeleteRichMenu tool, which registers the tool with the MCP server.
    register(server: McpServer) {
      const richMenuIdSchema = z
        .string()
        .describe("The ID of the rich menu to delete.");
    
      server.tool(
        "delete_rich_menu",
        "Delete a rich menu from your LINE Official Account.",
        {
          richMenuId: richMenuIdSchema.describe(
            "The ID of the rich menu to delete.",
          ),
        },
        async ({ richMenuId }) => {
          try {
            const response = await this.client.deleteRichMenu(richMenuId);
            return createSuccessResponse(response);
          } catch (error) {
            return createErrorResponse(
              `Failed to delete rich menu: ${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