sample
Retrieve random rows from a table without scanning the entire table, using TABLESAMPLE for unbiased sampling even on large datasets.
Instructions
A few genuinely random rows from a table (TABLESAMPLE on big tables — no scan, no physically-adjacent LIMIT bias).
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| table | Yes | ||
| profile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |