Skip to main content
Glama

auth-check

Verify authentication status for App Store Connect and Google Play Console to enable store management directly from AI clients.

Instructions

Check authentication status for App Store Connect / Google Play Console.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
storeNoStore to check (default: both)

Implementation Reference

  • The handler function `handleAuthCheck` that implements the core logic of the 'auth-check' tool. It checks authentication status for App Store Connect and/or Google Play Console based on the provided store option, using services to verify auth, and returns a formatted text response with results.
    export async function handleAuthCheck(options: AuthCheckOptions) {
      const { store } = options;
      const {
        store: targetStore,
        includeAppStore,
        includeGooglePlay,
      } = getStoreTargets(store);
      const results: string[] = [];
    
      console.error(`[MCP] 🔐 Checking authentication (store: ${targetStore})`);
    
      if (includeAppStore) {
        console.error(`[MCP]   Checking App Store Connect...`);
        const appStoreResult = await appStoreService.verifyAuth(300);
        if (appStoreResult.success && appStoreResult.data) {
          results.push(`✅ **App Store Connect**`);
          results.push(`   Issuer ID: ${appStoreResult.data.payload.iss}`);
          results.push(`   Key ID: ${appStoreResult.data.header.kid}`);
          results.push(`   JWT created successfully`);
        } else {
          results.push(`❌ **App Store Connect**`);
          results.push(
            `   ${appStoreResult.error?.message || "Authentication failed"}`
          );
        }
        results.push("");
      }
    
      if (includeGooglePlay) {
        console.error(`[MCP]   Checking Google Play Console...`);
        const playStoreResult = await googlePlayService.verifyAuth();
        if (playStoreResult.success && playStoreResult.data) {
          results.push(`✅ **Google Play Console**`);
          results.push(`   Project: ${playStoreResult.data.project_id}`);
          results.push(`   Service Account: ${playStoreResult.data.client_email}`);
        } else {
          results.push(`❌ **Google Play Console**`);
          results.push(
            `   ${playStoreResult.error?.message || "Authentication failed"}`
          );
        }
      }
    
      return {
        content: [
          {
            type: "text" as const,
            text: `🔐 **Authentication Status**\n\n${results.join("\n")}`,
          },
        ],
      };
    }
  • The input schema definition for the 'auth-check' tool using Zod: an optional 'store' parameter with enum ['appStore', 'googlePlay', 'both']. Note: storeSchema is defined earlier at line 31.
    registerToolWithInfo(
      "auth-check",
      {
        description:
          "Check authentication status for App Store Connect / Google Play Console.",
        inputSchema: z.object({
          store: storeSchema.describe("Store to check (default: both)"),
        }),
      },
      handleAuthCheck,
      "Authentication"
    );
  • src/index.ts:145-156 (registration)
    Registration of the 'auth-check' tool in the MCP server via `registerToolWithInfo`, linking the name, description, schema, handler, and category.
    registerToolWithInfo(
      "auth-check",
      {
        description:
          "Check authentication status for App Store Connect / Google Play Console.",
        inputSchema: z.object({
          store: storeSchema.describe("Store to check (default: both)"),
        }),
      },
      handleAuthCheck,
      "Authentication"
    );
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does but doesn't describe behavioral traits such as what the output looks like (e.g., success/failure status, error messages), whether it's idempotent, or any rate limits. This leaves significant gaps for a tool that checks authentication status.

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 with zero waste. It's appropriately sized for a simple tool and front-loaded with the core purpose, making it easy to understand at a glance.

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 purpose (checking authentication status) and lack of annotations and output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., boolean status, detailed auth info) or potential side effects, which is crucial for an authentication-related tool. The schema coverage is high, but behavioral context is lacking.

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

Parameters3/5

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

The schema description coverage is 100%, with the single parameter 'store' fully documented in the schema (including enum values and default). The description doesn't add any meaning beyond what the schema provides, such as explaining why one might choose 'both' over individual stores. Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Check authentication status') and target resources ('App Store Connect / Google Play Console'), providing a specific verb+resource combination. However, it doesn't distinguish this tool from sibling tools like 'apps-init' or 'apps-add' which might also involve authentication, missing full sibling differentiation.

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., before performing operations that require authentication), exclusions, or how it relates to sibling tools like 'apps-init' that might handle authentication setup.

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/quartz-labs-dev/pabal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server