Skip to main content
Glama
ambit1977

Google Tag Manager MCP Server

by ambit1977

list_triggers

Retrieve all triggers from a Google Tag Manager workspace to manage event-based tag firing rules. Specify account, container, and workspace IDs to access trigger configurations.

Instructions

指定されたワークスペースのトリガー一覧を取得します

Input Schema

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

Implementation Reference

  • Schema definition including name, description, and input schema for the list_triggers MCP tool in the ListTools response.
    name: 'list_triggers', description: '指定されたワークスペースのトリガー一覧を取得します', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'アカウントID', }, containerId: { type: 'string', description: 'コンテナID', }, workspaceId: { type: 'string', description: 'ワークスペースID', }, }, required: ['accountId', 'containerId', 'workspaceId'], }, },
  • MCP tool handler for list_triggers that delegates to GTMClient.listTriggers and formats the response as JSON text content.
    case 'list_triggers': return { content: [ { type: 'text', text: JSON.stringify( await this.gtmClient.listTriggers( args.accountId, args.containerId, args.workspaceId ), null, 2 ), }, ], };
  • Core implementation in GTMClient that calls the Google Tag Manager API to list triggers in the specified workspace.
    async listTriggers(accountId, containerId, workspaceId) { await this.ensureAuth(); const response = await this.tagmanager.accounts.containers.workspaces.triggers.list({ parent: `accounts/${accountId}/containers/${containerId}/workspaces/${workspaceId}` }); return response.data.trigger || []; }

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