Skip to main content
Glama
ambit1977

Google Tag Manager MCP Server

by ambit1977

reset_auth

Clear saved authentication credentials for the Google Tag Manager MCP Server to resolve connection issues or switch accounts.

Instructions

保存された認証情報をリセットします

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of resetAuth: deletes the saved token file and clears OAuth2 client credentials.
    async resetAuth() {
      if (existsSync(this.tokenPath)) {
        try {
          const fs = await import('fs/promises');
          await fs.unlink(this.tokenPath);
        } catch (error) {
          // ファイル削除に失敗しても続行
        }
      }
      this.oAuth2Client.setCredentials({});
      return { success: true, message: '認証情報をリセットしました' };
    }
  • MCP tool handler for 'reset_auth': retrieves OAuth2Auth instance from GTMClient and calls resetAuth(), returns result as text content.
    case 'reset_auth': {
      const oauth2Auth = this.gtmClient.getOAuth2Auth();
      const result = await oauth2Auth.resetAuth();
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • src/index.js:67-73 (registration)
    Tool registration in listTools response: defines 'reset_auth' tool with name, description, and empty input schema.
      name: 'reset_auth',
      description: '保存された認証情報をリセットします',
      inputSchema: {
        type: 'object',
        properties: {},
      },
    },
  • Input schema for reset_auth tool: empty object (no parameters required).
        type: 'object',
        properties: {},
      },
    },
  • Helper method in GTMClient to retrieve the OAuth2Auth instance used by the reset_auth handler.
    getOAuth2Auth() {
      return this.oauth2Auth;
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does ('reset saved authentication information') but doesn't explain what 'reset' entails (e.g., does it delete credentials, revoke tokens, require re-authentication?), potential side effects, or any permissions/rate limits needed. This leaves significant gaps for a mutation tool.

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, clear sentence in Japanese that directly states the tool's purpose without any fluff or redundancy. It's front-loaded and efficiently conveys the core action, making it highly concise and well-structured.

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

Completeness3/5

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

Given the tool has 0 parameters, no output schema, and no annotations, the description is minimally adequate for a simple reset operation. However, as a mutation tool with no behavioral details (e.g., what 'reset' means, effects on other operations), it lacks completeness for safe and informed use by an AI agent, especially compared to siblings like 'authenticate'.

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, and schema description coverage is 100%, so there are no parameters to document. The description doesn't need to add parameter semantics, and it appropriately doesn't mention any. A baseline of 4 is applied for zero-parameter tools when the schema is fully covered.

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 states a clear action ('reset') on a specific resource ('saved authentication information'), which is more specific than just restating the tool name. However, it doesn't distinguish this tool from potential sibling alternatives like 'delete_auth' or 'clear_auth', though no such siblings exist in the provided list.

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. It doesn't mention prerequisites (e.g., authentication must exist), consequences (e.g., what happens after reset), or related tools like 'authenticate' or 'check_auth_status' from the sibling list.

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