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
| Name | Required | Description | Default |
|---|---|---|---|
| input_token | Yes | Access token to inspect |
Implementation Reference
- src/tools/meta/auth.ts:41-55 (handler)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 }; } } );