sample_rows
Fetch up to 50 rows from a PostgreSQL table or view, optionally choosing columns, to inspect data without writing custom SQL.
Instructions
A few rows of a table or view, optionally some columns. Default 10, at most 50, in no order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many rows, 1 to 50. Default 10. | |
| table | Yes | "orders" or "sales.orders". | |
| schema | No | Schema to look in; omit for every readable schema. | |
| columns | No | Columns, e.g. "id, total"; omit for all. |