check_session
Returns connection status for the signed-in Anwani user so you can verify OAuth sign-in before calling address tools.
Instructions
Returns connection status for the signed-in Anwani user as {ok, connected, scopes, expiresAt}. Identity comes from the saved OAuth token (no parameters) and never includes Firebase UIDs or internal IDs. Use it when unsure the user is signed in before calling address tools; do not use it to list or change addresses (use list_addresses, get_address, create_address, patch_address instead). Read-only.
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": "check_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True when the request succeeded. | |
| scopes | No | Granted scopes, e.g. address:read. | |
| connected | No | True when a valid OAuth token is saved. | |
| expiresAt | No | Token expiry (epoch ms or ISO string), or null. |