Skip to main content
Glama

validate_access_token

Check Instagram API access token validity and verify required permissions for secure API interactions.

Instructions

Validate the Instagram API access token and check permissions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for validating the access token in the Instagram API client.
    async validateAccessToken(): Promise<boolean> {
      try {
        await this.request("GET", "me", {
          params: { fields: "id" },
          useCache: false,
        });
        return true;
      } catch {
        return false;
      }
    }
  • The tool handler switch case in index.ts that calls the client's validateAccessToken method.
    case "validate_access_token": {
      const valid = await c.validateAccessToken();
      return JSON.stringify({ valid }, null, 2);
    }
  • src/index.ts:172-175 (registration)
    Tool registration for validate_access_token.
      name: "validate_access_token",
      description: "Validate the Instagram API access token and check permissions",
      inputSchema: { type: "object" as const, properties: {} },
    },

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/mcpware/instagram-mcp'

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