The Postgres SQL tool lets your agents run SQL queries directly on your PostgreSQL database. Perfect for data analysis, reporting, and retrieving specific information from your database.
Requires Postgres Integration: You need to set up a Postgres integration before agents can use this tool.
SELECT DATE_TRUNC('month', order_date) as month, COUNT(*) as total_orders, SUM(total_amount) as revenueFROM orders WHERE order_date >= '2024-01-01'GROUP BY monthORDER BY month DESC;