Skip to main content
Glama
ambit1977

Google Tag Manager MCP Server

by ambit1977

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • Input schema definition for 'list_accounts' tool (no required parameters).
    inputSchema: { type: 'object', properties: {}, },
  • 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 || []; }

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