Skip to main content
Glama
informatics-isi-edu

Deriva MCP Server

Official

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")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
versionYes
dataset_ridYes
exclude_tablesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full transparency burden. It discloses the internal process (same FK path traversal as a bag download, querying snapshot catalog) and details the return structure. It implies a read-only operation without explicitly stating side effects, but the 'preview' context makes the behavior clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and efficient: a succinct purpose statement, a brief behavior explanation, then organized Args and Returns sections. Every sentence contributes value with no redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool includes an output schema, but the description still provides a complete picture: what it does, when to use it, how it works, parameter details, and the expected return structure. For a read-only estimation tool, this is comprehensive and leaves no critical gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description's Args section fully compensates by explaining each parameter's role and optionality: dataset_rid as the target dataset, version with an example format, and exclude_tables as an optional exclusion list for FK traversal. This adds significant meaning beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a specific verb and resource: 'Estimate the size of a dataset bag before downloading.' This clearly distinguishes it from sibling tools like bag_info or clone_catalog, and immediately conveys the tool's core function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context: 'Use this to preview what a download will contain and how large it will be before committing to the full download.' It does not explicitly name alternatives or exclusions, but the usage scenario is evident and sufficient for an agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/informatics-isi-edu/deriva-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server