build_subset_dataset
Apply categorical, numeric, and datetime filters to a source dataset and save the resulting subset as a new dataset.
Instructions
Filter a dataset by categorical, numeric, and datetime criteria, then save the result.
All filter types are applied independently and intersected to produce the final subset.
Args:
source_dataset_name: Name of the registered source dataset.
categorical_filters: List of (column, value) tuples for exact value matching.
E.g. [("region", "South"), ("region", "North"), ("category", "Hardware")]
numeric_filters: List of (column, value, operator) tuples for numeric comparison.
E.g. [("age", 30, ">="), ("salary", 50000, ">")]
datetime_column: Column name to filter by date range. Leave empty to skip.
datetime_from: Start of date range (inclusive). Leave empty for no lower bound.
datetime_to: End of date range (inclusive). Leave empty for no upper bound.
output_dataset_name: Name for the output subset. Auto-generated if empty.
output_dataset_desc: Description of the subset. Auto-generated if empty.
Returns:
A JSON str with {"dataset_name":"...","dataset_path":"...","dataset_schema":"..."}
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": {
"source_dataset_name": "<source_dataset_name>"
},
"name": "build_subset_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datetime_to | No | ||
| datetime_from | No | ||
| datetime_column | No | ||
| numeric_filters | No | ||
| categorical_filters | No | ||
| output_dataset_desc | No | ||
| output_dataset_name | No | ||
| source_dataset_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |