Get table sample
get_table_samplePreview a few rows from any named table or view to inspect columns, sample records, and row count when no per-table sampling tool is available.
Instructions
Preview a small number of rows from a named table or view, even when no per-table sample tool exists. Returns columns, rows, and the returned row count. Order is unspecified. Use profile_table for quality statistics or execute_readonly_query for a filtered, ordered, or aggregate result.
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 |
|---|---|---|---|
| alias | No | Alias from list_connections. Omit only when exactly one database is open. | |
| limit | No | Requested sample rows, subject to the server's row cap. | |
| table | Yes | Table or view name from list_tables, e.g. public.orders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||