list_accounts
Retrieve all Google Tag Manager accounts to manage containers, workspaces, tags, triggers, and variables through OAuth2 authentication.
Instructions
Google Tag Managerのアカウント一覧を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:924-932 (handler)MCP tool handler for 'list_accounts'. Delegates to GTMClient.listAccounts() and formats response as JSON text content.case 'list_accounts': return { content: [ { type: 'text', text: JSON.stringify(await this.gtmClient.listAccounts(), null, 2), }, ], };
- src/index.js:75-81 (registration)Registration of 'list_accounts' tool in ListToolsRequestSchema response, including name, description, and empty input schema.name: 'list_accounts', description: 'Google Tag Managerのアカウント一覧を取得します', inputSchema: { type: 'object', properties: {}, }, },
- src/index.js:77-80 (schema)Input schema definition for 'list_accounts' tool (no required parameters).inputSchema: { type: 'object', properties: {}, },
- src/gtm-client.js:43-47 (helper)Core helper method in GTMClient that authenticates and calls Google Tag Manager API to retrieve account list.async listAccounts() { await this.ensureAuth(); const response = await this.tagmanager.accounts.list(); return response.data.account || []; }