Skip to main content
Glama

Misata Studio: verified synthetic data

Export a dataset

export_dataset
Idempotent
Export a generated dataset as a file. Returns a `download_url` the person can open (or you can
fetch, e.g. with curl) for as long as the dataset is held (2 hours; 14 days for a signed-in caller).
Give the person the link rather than pasting file contents into the chat.

For a platform that pulls tables itself, pass `per_table=True` (or `table` for one): format json,
jsonl or csv, and each table comes back as its own unzipped link with its row count and the
manifest that types every column. A link pages with `offset` and `limit` (at most 100,000 rows a
page), says `X-Total-Rows`, names the next page in `Link`, and is good until `expires_at`.

Args:
    dataset_id: from a prior generate_dataset call.
    format:     data: csv, parquet, jsonl, json, avro, xlsx, feather, orc, sqlite, duckdb, sql.
                code and docs: dbt, notebook, dictionary, dbml, mermaid, prisma, sqlalchemy,
                typescript, jsonschema, expectations, django, openapi, mockapi.
                `sql` is schema.sql (DDL with keys) + data.sql (COPY/INSERT) — the way to seed a
                real database: run the returned SQL through your own database connection, since
                this server never holds a database credential itself.
                `demo` is the handover for a demo or an eval: the database with a one-step loader,
                the ER diagram, answer_key.json (every number by month), questions.jsonl and
                the proof of each request.
                `raw` is each table as its source systems sent it, for a dataset built from a
                blueprint: drops by period in each period's shape, re-sends and soft deletes, with
                staging.sql that reads them back into the clean tables.
                `salesforce` and `hubspot` are the tables as that CRM's own objects, one CSV per
                object in load order with every lookup by an external id, a manifest and a README
                on loading it (Bulk API 2.0 upserts; HubSpot batch upserts with associations).
    dialect:    for `sql`: postgres, mysql, sqlite, mssql, oracle, bigquery, snowflake, clickhouse
                (MergeTree tables; above 500k rows, typed Parquet with load.sql). For `demo`:
                postgres (psql) or clickhouse (Parquet loaded with clickhouse-client).
    inline:     also return the file itself as `base64` (only for files under a few MB). Use it
                when you must write the file yourself and cannot fetch a URL.

    table:      one table as its own link (json, jsonl or csv).
    per_table:  every table as its own link (json, jsonl or csv).

Returns:
    filename, content_type, bytes, download_url, expires_at (unix seconds), and `base64` when
    `inline` and small enough. Per table: format, expires_at, manifest, and tables {name: {rows, url}}.

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_id": "<dataset_id>"
    },
    "name": "export_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNo
formatNocsv
inlineNo
dialectNopostgres
per_tableNo
dataset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / dialect / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / dialect / type
      Removed value: -"string"
    • addedInput schema / properties / format / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / format / type
      Removed value: -"string"
    • addedInput schema / properties / inline / anyOf
      Added value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / inline / type
      Removed value: -"boolean"
    • addedInput schema / properties / per_table
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": false,
      +  "title": "Per Table"
      +}
    • addedInput schema / properties / table
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Table"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses retention windows (2 hours, 14 days for signed-in callers), URL pagination with offset/limit, the 100,000-row page cap, X-Total-Rows/Link/expires_at behavior, and that SQL export requires running the returned SQL through the caller's own database connection. These are material operational behaviors that the annotations do not convey.

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 long but appropriately sized for a six-parameter export tool with no schema descriptions and no output schema. It is front-loaded with purpose and delivery guidance, then organized into Args and Returns sections; the dense format lists earn their space by compensating for the bare schema.

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?

With no output schema, the Returns section fully covers the default and per-table response shapes, including filename, content_type, bytes, download_url, expires_at, base64, manifest, and row counts. Combined with retention and pagination details, it gives an agent enough information to call the tool and explain its behavior correctly.

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 description coverage is 0% and the six parameters have only titles and defaults, so the description carries the full semantic burden. It documents dataset_id, enumerates format values, constrains dialect by format, and explains table, per_table, and inline behavior in detail.

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 first sentence states the specific verb and resource: export a generated dataset as a file, returning a download_url. The prerequisite dataset_id from generate_dataset and the explicit export framing distinguish it from sibling tools such as query_dataset or load_dataset.

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?

It gives concrete usage guidance for delivering a link, using per_table or table for platform-side pulls, and using inline base64 only when the caller cannot fetch a URL. It does not explicitly name when to choose export over sibling tools like query_dataset or load_dataset, so it stops short of full when/when-not/alternatives coverage.

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