sample_data
Retrieve sample rows from any PostgreSQL table to preview data and understand its structure. Specify table name and optional row limit.
Instructions
Return sample rows from a table.
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": "sample_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of rows to return. Defaults to SAMPLE_DATA_LIMIT env var (default 5). Hard-capped by SAMPLE_DATA_MAX_ROWS. | |
| table | Yes | Table name in "schema.table" format or bare table name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||