tools = [ { "type": "function", "function": { "name": "execute_sql_query", "description": "Execute a SQL query on the Supabase PostgreSQL database and return the results.", "parameters": { "type": "object", "properties": { "sql_query": { "type": "string", "description": "The SQL query to execute (e.g., 'SELECT * FROM songs WHERE Valence > 0.5')" } }, "required": ["sql_query"] } } }, { "type": "function", "function": { "name": "download_spotify_songs", "description": "Retrieve a list of songs requested by the user that are available for download.", "parameters": { "type": "object", "properties": { "tracks": { "type": "array", "items": { "type": "string" }, "description": "Obtain a list of track names available for download as songs." } }, "required": ["tracks"] } } } ]