plan_seed_data
Analyze target tables, foreign keys, constraints, and row counts to build a safe parent-first seed plan before generating previews or inserting relational dummy data.
Instructions
🌱 RELATIONAL SEEDER: Analyzes target tables, foreign keys, constraints, and row counts to build a safe parent-first seed plan. Use this before generating preview or inserting dummy relational data.
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": {
"target_tables": "<target_tables>"
},
"name": "plan_seed_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: specific connected database name | |
| strategy | No | Seed strategy (currently append) | |
| seed_rules | No | Optional generator overrides keyed by table.column or column name | |
| random_seed | No | Deterministic seed for repeatable preview and execution (default: 42) | |
| target_tables | Yes | Target tables to seed | |
| rows_per_table | No | Rows to create for target tables, either a single number or table-to-count map (default: 10) | |
| include_children | No | Include child tables that reference included tables for nested relational seeding (default: false) | |
| max_related_tables | No | Safety cap for dependency/child expansion (default: 25) | |
| max_rows_per_table | No | Safety cap for generated rows per table (default: 1000) | |
| include_dependencies | No | Include parent tables required by foreign keys (default: true) | |
| require_confirmation | No | Require confirm_token for non-dry-run execution (default: true) | |
| child_rows_per_parent | No | Rows to create in child tables for each parent row (default: 2) | |
| respect_existing_data | No | Reuse existing parent records when possible instead of creating new parent rows (default: true) |