Generate a verified dataset
generate_datasetMake a verified relational dataset and wait for it: every foreign key checked, dates correctly
ordered, declared aggregates and rates exact, before anything is returned. Deterministic for a seed.
Use this when you give a `schema` or `ddl` (seconds). For a plain-English `request` the engine
designs the tables with a model, which can take several minutes: call start_generation instead and
poll get_status, so the call does not sit open and time out.
Args:
request: Plain-English description (needs an LLM key unless `schema`/`ddl` is also given). With no key,
design it yourself instead: blueprint_guide, then `blueprint` below.
schema: A Studio schema dict for exact structural control (the format Studio's designer saves; the
server instructions have the full reference). No key needed for structure. `tables` lists each
table's `name`, `rows` (or `parent` and `per_parent`) and `columns`; `window` sets the months
the data covers ({"months": 12, "end": "yesterday"} reads it on the day the data is built);
`numbers` (revenue by month, churn, MRR, shares, averages) are held exactly:
{"window": {"start": "2024-01", "end": "2025-12"},
"tables": [{"name": "suppliers", "rows": 300, "columns": [
{"name": "supplier_id", "primary": true},
{"name": "tier", "type": "category", "values": ["Critical", "Low"]}]},
{"name": "incidents", "parent": "suppliers", "per_parent": 3, "columns": [
{"name": "incident_id", "primary": true},
{"name": "supplier_id", "references": "suppliers.supplier_id"},
{"name": "detected_on", "type": "date"}]}],
"numbers": [{"kind": "flow", "table": "incidents", "time": "detected_on",
"points": {"2024-01": 20, "2025-12": 40}, "says": "incidents double"}]}
A column's `moves_with` ({"column": "customers.income", "strength": 0.6}) pairs it with another
number of its row or its parent's, by rank, each keeping its own values.
ddl: CREATE TABLE statements. No key needed for structure. Beside it, schema={"numbers": [...],
"window": {...}} holds the story's numbers on these tables.
seed: Reproducibility seed — the same request/schema and seed always produce the same rows.
research: Ground realistic numbers (prices, growth rates) in real published facts via a web
search. Off by default (an anonymous caller's request should not trigger external
calls unless asked for); needs a key regardless of `schema`/`ddl`.
blueprint: The engine's full design language (blueprint_guide has the reference): readings around
a parent's nominal, drift, autocorrelation, cause-and-effect, event windows, exact
aggregates. Use it whenever the data must behave like the real process. No key needed;
run validate_blueprint on it first.
story: A built-in shape held to exact numbers, the way Studio's plan screen states them. No key
needed; built by code in seconds. {"pack": "saas_sales", "window": {"start": "2024-09",
"end": "2026-08"}, "curves": [{"lever": "mrr_curve", "points": {"2024-09": 50000,
"2026-08": 200000}}], "rates": [{"lever": "monthly_logo_churn", "value": 0.02,
"events": [{"name": "Q3 churn spike", "start": "2025-07-01", "end": "2025-09-30",
"multiplier": 2.5}]}]}. Shapes: saas_sales, ecommerce, fintech, healthcare. Every
stated number is held exactly and read back in SQL; get_certificate has the answer key.
`numbers` sets plain sizes and shares ({"customers": 3000, "products": 400, "return_rate":
0.06}); `settings` sets its words ({"currency": "EUR", "company_name": "Brightlane"}:
saas_sales sets its own euro price list). With no model key the shape's content is generic (ecommerce sells electronics,
books, toys): write it yourself as `content`, e.g. {"catalog": [{"name": "Linen Duvet
Cover", "category": "Bedding", "brand": "Fernhill", "price": 89.0}, ...]} (the store's
whole catalogue: any number of items in any categories, each at its price in the
dataset's currency, kept as given; the products number is the catalogue's length).
name: Signed-in callers: keep the dataset as a named feed ("supply-risk": lowercase letters, digits,
hyphens). Each table is then always at GET /v1/feeds/{name}/tables/{table}?format=json (Bearer
Misata key, read-only is enough); a later dataset of the same name takes its place only when it
passed. The result's `feed` lists the addresses. Each table also reads `as_of=<day>` (as it
stood that day) and `since=<day>` (only rows added or changed after it, by key).
webhook_url: Signed-in callers: an https address told when the dataset is ready or failed, signed as /v1
webhooks are (Misata-Signature; the secret is at GET /v1/webhook-secret).
as_of: The data's last day (YYYY-MM-DD); by default the last month the schema's numbers or window name,
else today. Not with a blueprint, which keeps its own window.
drip: With `name`: the feed serves the dataset as it stood at the end of the day before each pull, so a
window running past today gives its rows a day at a time (pull with since=<last day> for what is new).
Returns:
dataset_id: pass this to get_certificate / query_dataset / export_dataset.
passed: whether every check held. A dataset that did not pass is still returned, with
`certificate.findings` saying what failed — inspect before trusting it.
verification: a short, plain-language account of what was checked and what held — show it to the
person as the proof, in place of asking them to take the data on trust.
tables: {name: {columns, preview_rows (first 20), total_rows}} — the preview only; every
row is in the stored dataset, reachable by query_dataset/export_dataset.
manifest: every table typed for loading: {"tables": [{table, rows, primary_key, columns: [{name,
type (string|integer|number|boolean|date|datetime|uuid|json), nullable, primary,
references, values, decimals}]}]}. export_dataset(per_table=True) gives each table as JSON.
held_until: when the dataset is deleted (unix seconds): 14 days signed in, 2 hours otherwise.
certificate: the short form (claims, requirements, findings, and row_model: why each column holds
what it does). get_certificate returns the rest
(patterns, realism scorecard, every proof chart).
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": "generate_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ddl | No | ||
| drip | No | ||
| name | No | ||
| seed | No | ||
| as_of | No | ||
| story | No | ||
| schema | No | ||
| request | No | ||
| research | No | ||
| blueprint | No | ||
| webhook_url | No |