Skip to main content
Glama

meta_debug_token

Inspect Meta platform access tokens to verify validity, check expiration dates, review granted scopes, and identify associated users for debugging and security purposes.

Instructions

Debug/inspect an access token to check validity, expiration, scopes and associated user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_tokenYesAccess token to inspect

Implementation Reference

  • The meta_debug_token tool implementation, which inspects an access token using the MetaClient.
    server.tool(
      "meta_debug_token",
      "Debug/inspect an access token to check validity, expiration, scopes and associated user.",
      {
        input_token: z.string().describe("Access token to inspect"),
      },
      async ({ input_token }) => {
        try {
          const { data, rateLimit } = await client.debugToken(input_token);
          return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Token debug failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true };
        }
      }
    );

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/mikusnuz/meta-mcp'

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