jcs_login
Authenticate to the Joaquim Chaves Saúde patient portal with your phone number and password. The login session is saved and reused for 24 hours, returning patient name and ID.
Instructions
Log in to JCS with phone number (from env) + password.
Only needs to be called once — the session is saved to ~/.jcs_session.json and reused automatically until it expires (~24h).
Returns: {"success": True, "patient_name": "...", "patient_id": "..."}
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": {
"password": "<password>"
},
"name": "jcs_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes |