Skip to main content
Glama

generate_test_data

Generate relational test data with correct foreign key references. Use structured schemas or plain English descriptions. Output in JSON, CSV, or SQL.

Instructions

Generate realistic test data for database tables.

Send either a structured schema (tables with fields) or a plain English description. Supports relational data with foreign keys, locale-aware names and addresses, 22 locales, 157 field types, and multiple output formats (JSON, CSV, SQL).

The killer feature: define multiple tables with "ref" fields, and all foreign key relationships are correct — orders reference real user IDs, reviews link to real products. One call seeds your entire database.

Auto-locale: add a "country" field as an enum with country codes (DE, FR, US, etc.) and names, emails, phones automatically match each row's nationality.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tablesNoStructured schema — array of table definitions
promptNoPlain English description (e.g. "50 users with German names and 200 orders linked to them")
formatNoOutput formatjson
sql_dialectNoSQL dialect (only when format=sql)
localeNoDefault locale (en, de, fr, es, ja, etc.). Auto-detected from country field if present.
seedNoSeed for reproducible output. Same seed + same schema = identical data.
Behavior5/5

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

No annotations provided, so description carries full burden. It discloses key behaviors: supports foreign key relationships across tables, auto-locale via country field, multiple output formats, and reproducibility via seed. These are beyond the input schema.

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?

Description is concise and front-loaded: first sentence states purpose, then bullet-like details on features. No wasted words; every sentence adds value. Well-structured for an AI agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers input modes, relational data, locales, formats, and reproducibility. Missing explicit description of output structure (since no output schema), but mentions formats (JSON, CSV, SQL) which implies the output content. Slightly incomplete, but overall sufficient for a generation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so description adds limited new meaning per parameter. It reiterates the two modes and adds context on auto-locale and seeding, but most parameter semantics are already in the schema. Baseline 3 is appropriate.

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 description clearly states it generates realistic test data for database tables, and highlights two input modes (structured schema or plain English). It distinguishes from siblings like detect_schema (schema detection) and list_field_types (type listing) by focusing on generation with relational integrity and locales.

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?

The description explains when to use this tool: to generate test data from a schema or plain description. It implies generating from scratch vs. using templates (generate_from_template), but doesn't explicitly contrast with siblings. Clear guidance on input modes is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dinosaur24/mockhero'

If you have feedback or need assistance with the MCP directory API, please join our Discord server