Get Dataset Sample Tool
get-dataset-sampleReturn a small sample of recent rows from a dataset. User tables are ordered by record_time descending. System log tables are ordered by run_time or record_time descending. The default limit is 10 and the maximum is 50. The rows are a recent sample, not a population for statistics.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-dataset-sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return. Defaults to 10 and is capped at 50. | |
| space | No | Space slug. Required when the token is bound to more than one space. Omit it when the token has one space. | |
| dataset_id | No | Numeric dataset id. Required when table_name is omitted. | |
| table_name | No | Physical table name. Required when dataset_id is omitted. |