estimate_bag_size
Estimate the size of a dataset bag before downloading by previewing row counts and asset file sizes across all tables, helping you decide whether to commit to the full download.
Instructions
Estimate the size of a dataset bag before downloading.
Runs the same FK path traversal as a dataset bag download, then queries the snapshot catalog for row counts and asset file sizes. Use this to preview what a download will contain and how large it will be before committing to the full download.
Args: dataset_rid: RID of the dataset to estimate. version: Semantic version to estimate (e.g., "1.0.0"). exclude_tables: Optional list of table names to exclude from FK path traversal during bag export.
Returns: JSON with: - tables: dict of table name -> {row_count, is_asset, asset_bytes} - total_rows: total row count across all tables - total_asset_bytes: total asset size in bytes - total_asset_size: human-readable size (e.g., "1.2 GB")
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": {
"dataset_rid": "<dataset_rid>",
"version": "<version>"
},
"name": "estimate_bag_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | ||
| dataset_rid | Yes | ||
| exclude_tables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |