Session status
session_statusCheck whether the Kite session is logged in and when its token expires; optionally verify with Kite that the token is still accepted, so you can reauthenticate before trading.
Instructions
Whether this server is logged in to Kite, and what to do if it is not. Call this first: Kite sessions end every day at 06:00 IST.
Returns logged_in, the token's expires_at and minutes_left, auth_mode (managed: this server does the
daily login; external: another program keeps the token file and this server only reads it),
login_managed_here, the token file path, minutes_to_token_reset (to the next 06:00 IST), and a one-line
safety summary (trading mode, read-only). The token itself is never shown.
verify=true also makes one live call to Kite and adds verify with the user id or Kite's error. Use it when a
token that looks valid might have been ended elsewhere (logging in again with the same API key, or a master
logout on the Kite web, ends the earlier token).
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": "session_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verify | No | also ask Kite once (GET /user/profile) whether it still accepts the token, and report the account's user id or Kite's error |