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
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | アカウントID | |
| containerId | Yes | コンテナID | |
| workspaceId | Yes | ワークスペースID |
Implementation Reference
- src/index.js:158-178 (schema)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'], },
- src/index.js:993-1009 (handler)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 ), }, ], };
- src/gtm-client.js:107-113 (helper)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; }