Generate-Data

v2.0.1
io.github.ns-3e/generate-data-mcp Checked 2 days ago Published 4 months ago

MCP server for Generate-Data.com: dataset generation, AI schema design, Project management.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gd_generate_dataset

Generate synthetic dataset rows from a field list. Use this when the user wants actual generated data (as opposed to schema design or field-type discovery). `fields` is a list of `{"name": str, "type": str, "options": dict}` (get valid `type` values from `gd_list_field_types`/`gd_get_field_type_options`). `format` must be one of `csv`, `json`, `xml`, `parquet`, `zip` (anything else returns an `unsupported_format` error). `num_rows` caps upstream row count; `settings` is an optional passthrough dict of generation settings. Returns the JSON envelope: on success `data.…

ParameterTypeDescription
fields *array
formatstring
num_rowsinteger
settings

gd_list_field_types

List all available field types grouped by category. Use this to discover valid `type` values before calling `gd_generate_dataset` or to look up which category a field type belongs to. Takes no arguments. Returns the categorized field-type catalog in `data.categories`.

gd_get_field_type_options

Get the configuration option schema for one field type (e.g. what options `email` or `date` accept). Use this before building a `fields` entry for `gd_generate_dataset` that needs non-default options. `field_type` must match `^[a-z0-9_]+$` (lowercase letters, digits, underscore only) — anything else returns `invalid_input` without calling upstream. Returns the option schema in `data`.

ParameterTypeDescription
field_type *string

gd_design_schema

Design a dataset schema from natural language — one tool for both the first proposal and follow-up refinements. Behavior branches on args: - First call (propose): pass only `prompt` (and optionally `locale`, e.g. 'en_US', 'fr_FR'). `messages`/`current_schema` left unset. - Refine call: pass BOTH `messages` (the running conversation, list of `{"role": "user"|"assistant", "content": str}`) AND `current_schema` (the schema object returned by the prior call) together — `prompt` is still required by the signature but is not sent upstream for a refine call.…

ParameterTypeDescription
prompt *string
current_schema
localestring
messages

gd_get_usage

Get current API key usage stats (calls today, tier, limits). Use this to check remaining quota or confirm which tier the configured API key has before attempting a premium-only call. Takes no arguments. Returns the usage stats in `data`.

gd_list_projects

List the user's Projects (Premium tier only). Use this to discover `project_id` values before calling `gd_generate_project`. `limit` (default 20, max 100) and `offset` (default 0) page through the results; results are paginated client-side since the upstream API returns the full list. Non-Premium API keys get a `tier_forbidden` error — upgrade the Generate-Data.com plan to use this tool. Returns the page in `data` (`items`, `limit`, `offset`, `total_count`, `has_more`, `next_offset`).

ParameterTypeDescription
limitinteger
offsetinteger

gd_generate_project

Generate all tables in a Project and download the result (Premium tier only). `project_id` must be a positive integer (get one from `gd_list_projects`). `format` must be one of `csv`, `json`, `xml`, `parquet`, `zip` (default `zip`; anything else returns `unsupported_format`). Non-Premium API keys get a `tier_forbidden` error — upgrade the Generate-Data.com plan to use this tool. Returns the JSON envelope: on success `data.content` (csv/json/xml) or `data.content_base64` (parquet/zip, base64-encoded — never decode these as utf-8) plus `data.size_bytes`/`data.…

ParameterTypeDescription
project_id *integer
formatstring