query_raw_logs
Run SQL queries to analyze sleep, activity, and heart rate data from the Wellness Planner health database for insights and reporting.
Instructions
Run a read-only SQL query against the health database.
Available tables:
sleep_logs (date, bedtime, wake_time, total_hours, deep_sleep_hours, rem_sleep_hours, awakenings)
activity_logs (date, steps, active_minutes, calories_burned, workouts)
heart_rate_logs (date, timestamp, bpm)
Args: query: A SELECT SQL query. Only read operations are allowed.
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": {
"query": "<query>"
},
"name": "query_raw_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |