discovery_estimate
Estimate cost, time, and credit requirements before running a data analysis to determine if you have sufficient resources and whether a free public alternative exists.
Instructions
Estimate cost, time, and credit requirements before running an analysis.
Returns credit cost, estimated duration in seconds, whether you have
sufficient credits, and whether a free public alternative exists. Always call
this before discovery_analyze for private runs.
Args:
file_size_mb: Size of the dataset in megabytes.
num_columns: Number of columns in the dataset.
num_rows: Number of rows (optional, improves time estimate).
analysis_depth: Search depth (1=fast, higher=deeper). Default 1.
visibility: "public" (free, results published) or "private" (costs credits).
use_llms: Slower and more expensive, but you get smarter pre-processing, summary page, literature context and pattern novelty assessment. Only applies to private runs — public runs always use LLMs. Default false.
api_key: Disco API key (disco_...). Optional if DISCOVERY_API_KEY env var is set.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_size_mb | Yes | ||
| num_columns | Yes | ||
| num_rows | No | ||
| analysis_depth | No | ||
| visibility | No | public | |
| use_llms | No | ||
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |