Skip to main content
Glama
ambit1977

Google Tag Manager MCP Server

by ambit1977

delete_trigger

Remove triggers from Google Tag Manager configurations to manage event tracking and tag activation rules. Specify account, container, workspace, and trigger IDs to delete unwanted triggers.

Instructions

トリガーを削除します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdYesアカウントID
containerIdYesコンテナID
workspaceIdYesワークスペースID
triggerIdYesトリガーID

Implementation Reference

  • MCP tool handler that calls GTMClient.deleteTrigger with provided parameters and returns JSON response.
    case 'delete_trigger': return { content: [ { type: 'text', text: JSON.stringify( await this.gtmClient.deleteTrigger( args.accountId, args.containerId, args.workspaceId, args.triggerId ), null, 2 ), }, ], };
  • Input schema and metadata for the delete_trigger tool, registered in listTools response.
    { name: 'delete_trigger', description: 'トリガーを削除します', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'アカウントID', }, containerId: { type: 'string', description: 'コンテナID', }, workspaceId: { type: 'string', description: 'ワークスペースID', }, triggerId: { type: 'string', description: 'トリガーID', }, }, required: ['accountId', 'containerId', 'workspaceId', 'triggerId'], }, },
  • Core implementation: deletes the trigger via Google Tag Manager API v2.
    async deleteTrigger(accountId, containerId, workspaceId, triggerId) { await this.ensureAuth(); await this.tagmanager.accounts.containers.workspaces.triggers.delete({ path: `accounts/${accountId}/containers/${containerId}/workspaces/${workspaceId}/triggers/${triggerId}` }); return { success: true }; }

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/ambit1977/GTM-MCP'

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