Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

plan_seed_data

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
databaseNoOptional: specific connected database name
strategyNoSeed strategy (currently append)
seed_rulesNoOptional generator overrides keyed by table.column or column name
random_seedNoDeterministic seed for repeatable preview and execution (default: 42)
target_tablesYesTarget tables to seed
rows_per_tableNoRows to create for target tables, either a single number or table-to-count map (default: 10)
include_childrenNoInclude child tables that reference included tables for nested relational seeding (default: false)
max_related_tablesNoSafety cap for dependency/child expansion (default: 25)
max_rows_per_tableNoSafety cap for generated rows per table (default: 1000)
include_dependenciesNoInclude parent tables required by foreign keys (default: true)
require_confirmationNoRequire confirm_token for non-dry-run execution (default: true)
child_rows_per_parentNoRows to create in child tables for each parent row (default: 2)
respect_existing_dataNoReuse existing parent records when possible instead of creating new parent rows (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds genuine behavioral context by explaining that the plan is parent-first and constraint-aware, which tells the agent the output encodes a dependency ordering rather than just a table list. It does not mention that execution later requires a confirmation token, but that belongs to the execution tool.

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?

Two sentences, front-loaded with the resource and behavior, then the usage directive. Nothing is redundant and the emoji is the only cosmetic noise.

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?

For a 13-parameter read-only planning tool with no output schema, the description covers the analysis inputs and the ordering intent well enough to call it correctly. A brief note on what the plan contains would close the remaining gap, but the schema already documents every knob.

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 description coverage is 100% across all 13 parameters, including defaults and safety caps, so the schema carries the parameter burden. The description contributes only the general notion of a parent-first relational plan and does not add syntax, precedence, or interaction details beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Analyzes target tables, foreign keys, constraints, and row counts to build a safe parent-first seed plan" is a specific verb plus a specific artifact, so the agent knows this is a read-only planning step, not a mutation. It is distinguishable from generate_seed_preview by the explicit ordering statement, though it stops short of naming what it is not for.

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?

"Use this before generating preview or inserting dummy relational data" gives clear sequencing guidance and effectively names the downstream alternative (preview generation). It lacks an explicit when-not clause, but the positioning relative to siblings is unambiguous.

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