sample_data
Retrieve a random sample of N rows from a dataset to uncover data variety when head or tail views are insufficient.
Instructions
Return a random sample of N rows. Use when head/tail are not representative. Random sampling reveals data variety better. Example: sample_data(n=5)
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": "sample_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| df_name | No | ||
| random_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |