get_table_sample
Preview data from a PostgreSQL table by returning the first n rows, ordered by primary key when available. Specify table, schema, and row count to inspect data without modifying the database.
Instructions
Return the first n rows of a table (ORDER BY primary key if available).
Args: table: Table name. schema: Schema name (default: "public"). n: Number of rows to return (default: 20, max: 500).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| table | Yes | ||
| schema | No | public |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |