Skip to main content
Glama
ambit1977

Google Tag Manager MCP Server

by ambit1977

get_workspace

Retrieve detailed information about a specific workspace in Google Tag Manager by providing account, container, and workspace IDs.

Instructions

指定されたワークスペースの詳細を取得します

Input Schema

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

Implementation Reference

  • Schema definition for the 'get_workspace' MCP tool, including input schema with accountId, containerId, and workspaceId.
    { name: 'get_workspace', 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 'get_workspace' that extracts arguments, calls GTMClient.getWorkspace, and returns the result as formatted JSON text content.
    case 'get_workspace': return { content: [ { type: 'text', text: JSON.stringify( await this.gtmClient.getWorkspace( args.accountId, args.containerId, args.workspaceId ), null, 2 ), }, ], };
  • Core implementation of getWorkspace that ensures authentication and calls the Google Tag Manager API to retrieve workspace details.
    async getWorkspace(accountId, containerId, workspaceId) { await this.ensureAuth(); const response = await this.tagmanager.accounts.containers.workspaces.get({ path: `accounts/${accountId}/containers/${containerId}/workspaces/${workspaceId}` }); return response.data; }

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