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
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | アカウントID | |
| containerId | Yes | コンテナID | |
| workspaceId | Yes | ワークスペースID |
Implementation Reference
- src/index.js:358-378 (schema)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'], }, },
- src/index.js:1144-1160 (handler)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 ), }, ], };
- src/gtm-client.js:198-204 (helper)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 || []; }