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 || [];
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It only states what the tool does ('retrieves account list') without describing how it behaves: no information about pagination, sorting, filtering, rate limits, authentication requirements, or what the return format looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence in Japanese that directly states the tool's purpose with zero wasted words. It's appropriately sized for a simple list operation with no parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema), the description is minimally complete but lacks important context. As a list operation with no annotations, it should ideally mention something about the return format or authentication requirements to help the agent understand what to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters with 100% schema description coverage, so the schema already fully documents the parameter situation. The description doesn't need to add parameter information, and it appropriately doesn't mention any parameters. Baseline for 0 parameters with full schema coverage is 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('取得します' - retrieves/get) and resource ('Google Tag Managerのアカウント一覧' - Google Tag Manager account list), making the purpose understandable. However, it doesn't explicitly differentiate from sibling list tools like list_containers or list_workspaces, which would require a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of prerequisites (e.g., authentication), context for when listing accounts is appropriate, or comparison to other list tools in the sibling set.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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