Exchange WHOOP OAuth Code
whoop_exchange_codeExchange a WHOOP OAuth authorization code for locally stored tokens kept with 0600 permissions. Requires explicit user intent, so agents cannot call it autonomously.
Instructions
Exchange a WHOOP OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned by this tool. Gated: requires explicit user intent — agents must not call this autonomously.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "whoop_exchange_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | OAuth authorization code, or a full redirect URL containing ?code=... | |
| state | No | Optional OAuth state from the redirect URL. Recommended for PKCE verification. | |
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | Yes | ||
| scope | No | ||
| expires_at | No | ||
| token_path | Yes |