Current NexRex account
get_current_userIdentify the connected NexRex account: user_id, athlete_id, connection email, display name, roles and org_id. Takes no arguments and needs no coach role. Use it for 'who am I logged in as?' and before reading the account's own training: its athlete_id is the id athlete and plan tools take. A coach may not appear in their own athlete roster, so a roster miss says nothing about this account. org_id is the connection's organization context, not every membership; email is null when the connection supplied none.
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": "get_current_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| error | No | ||
| roles | No | ||
| org_id | No | ||
| status | No | ||
| message | No | ||
| privacy | No | Present when the athlete's settings withhold data. | |
| user_id | No | ||
| warnings | No | ||
| next_step | No | What can be done next, for example after a failure. | |
| athlete_id | No | ||
| next_cursor | No | Reads the next page; null on the last page. | |
| reason_code | No | ||
| total_weeks | No | ||
| display_name | No | ||
| user_content | No | Fields in this result that people wrote. | |
| weeks_returned | No | ||
| truncated_fields | No | Lists cut to fit one response: rows returned and total. | |
| generated_content | No | Fields in this result that NexRex's AI wrote. | |
| profile_available | No | ||
| session_definitions | No | Sessions that several rows of this result share by session_ref. | |
| content_block_fields | No | Column names of every content_blocks row, nested blocks rows included. |