Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/garmy/mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ def execute_sql_query(

IMPORTANT: Only SELECT and WITH queries are allowed for security.

Column names are non-obvious (daily_health_metrics alone has 50+ columns) —
call get_table_details(table_name) to confirm exact names before querying;
do NOT guess.

Args:
query: SQL SELECT query (e.g., "SELECT metric_date, total_steps FROM daily_health_metrics WHERE user_id = 1")
params: Optional list of parameters for ? placeholders in query
Expand Down