whoop-revoke-user-access
Revoke user access tokens to terminate WHOOP API authorization and secure fitness data access.
Instructions
Revoke the access token granted by the user
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "whoop-revoke-user-access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.ts:325-335 (handler)MCP server tool handler for 'whoop-revoke-user-access' that calls the WhoopApiClient method and returns success response.
case 'whoop-revoke-user-access': { await this.whoopClient.revokeUserAccess(); return { content: [ { type: 'text', text: 'User access revoked successfully', }, ], }; } - src/whoop-api.ts:54-56 (helper)Core implementation in WhoopApiClient: sends DELETE request to Whoop API endpoint '/user/access' to revoke user access.
async revokeUserAccess(): Promise<void> { await this.client.delete('/user/access'); } - src/mcp-server.ts:52-60 (registration)Tool registration in the ListTools response, including name, description, and input schema (no parameters required).
{ name: 'whoop-revoke-user-access', description: 'Revoke the access token granted by the user', inputSchema: { type: 'object', properties: {}, required: [], }, }, - src/mcp-server.ts:55-59 (schema)Input schema definition for the tool (empty object, no required parameters).
inputSchema: { type: 'object', properties: {}, required: [], },