Skip to main content
Glama

Misata Studio: verified synthetic data

Generate a verified dataset

generate_dataset
Idempotent
Make 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

NameRequiredDescriptionDefault
ddlNo
dripNo
nameNo
seedNo
as_ofNo
storyNo
schemaNo
requestNo
researchNo
blueprintNo
webhook_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / drip
      Added value: +{
      +  "default": false,
      +  "title": "Drip",
      +  "type": "boolean"
      +}
  2. Changed9 schema fields changed
    • addedInput schema / properties / as_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "As Of"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Name"
      +}
    • addedInput schema / properties / request / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / request / type
      Removed value: -"string"
    • addedInput schema / properties / research / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / research / type
      Removed value: -"boolean"
    • addedInput schema / properties / seed / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / seed / type
      Removed value: -"integer"
    • addedInput schema / properties / webhook_url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Webhook Url"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / story
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Story"
      +}
  4. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: retention windows (14 days signed in, 2 hours otherwise), determinism tied to seed, the fact that research triggers external web calls and is off by default for anonymous callers, key requirements per input type, webhook signing scheme, feed URL/auth requirements, and what a failed dataset still returns. Annotations cover safety/idempotency, and the description adds operational detail the agent needs.

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

Conciseness4/5

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

Front-loaded with purpose and routing, then cleanly sectioned into Args and Returns. It is very long, and some phrasing is dense and slightly redundant (key requirements and 'No key needed' repeated across several params), but given 11 undocumented parameters the length largely earns its place.

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?

Despite 11 parameters, no output schema, and a complex generative/verification pipeline, the definition covers inputs, alternative tools, external-call implications, and a full Returns section (dataset_id, passed, verification, tables, manifest, held_until, certificate). Nothing an agent needs to call and interpret the result is missing.

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%, so the description carries the full burden — and it does: each of the 11 parameters is documented with meaning, defaults, key requirements, and concrete JSON examples (schema, story, numbers, drip, name). It clarifies defaults (research off, as_of derived from window) and mutual interactions (as_of excluded with blueprint) that the schema alone cannot convey.

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?

Opens with a specific verb+resource ('Make a verified relational dataset and wait for it') and immediately defines what 'verified' means (foreign keys checked, dates ordered, aggregates exact). It also distinguishes itself from start_generation by naming the sibling and the condition that selects it, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Explicitly states 'Use this when you give a `schema` or `ddl` (seconds)' and then names the when-not case with the alternative: plain-English `request` can take minutes, so 'call start_generation instead and poll get_status, so the call does not sit open and time out.' It also points to blueprint_guide, validate_blueprint, and get_certificate in context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources