Skip to main content
Glama
EvandroSchechtel

WhatsApp Business MCP Server

delete_template

Remove a WhatsApp Business message template by name to manage your template library. This action permanently deletes the template.

Instructions

Delete a message template by name. This action is irreversible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_nameYesName of the template to delete

Implementation Reference

  • The actual implementation of the deleteTemplate method that makes the API request.
    async deleteTemplate(templateName: string) {
      return this.request(
        `/${this.config.businessAccountId}/message_templates?name=${templateName}`,
        "DELETE"
      );
    }
  • src/index.ts:319-329 (registration)
    The MCP tool registration for 'delete_template'.
    server.tool(
      "delete_template",
      "Delete a message template by name. This action is irreversible.",
      {
        template_name: z.string().describe("Name of the template to delete"),
      },
      async ({ template_name }) =>
        executeWithHooks("delete_template", { template_name }, config, () =>
          wa.deleteTemplate(template_name)
        )
    );

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/EvandroSchechtel/mcp-whatsapp'

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