run_sql
Executes a read-only SELECT query against the Garmin SQLite database for questions other tools cannot answer; use the v_day, v_week, or v_trends views.
Instructions
Run one read-only SELECT against the database for questions the other tools cannot answer. Prefer the views v_day (one row per day), v_week and v_trends. Raw API payloads are not accessible.
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": "run_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||