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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table": "<table>"
},
"name": "get_table_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| table | Yes | ||
| schema | No | public |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |