Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

seed_from_template

Read-onlyIdempotent

Creates a plan-first, foreign-key-aware seed workflow from ecommerce, POS, or CRM templates by detecting matching tables and returning a seed plan for preview or execution.

Instructions

🌱 TEMPLATE SEEDER: Creates a plan-first FK-aware seed workflow from ecommerce, POS, or CRM templates. It detects matching tables, applies domain rules, and returns a seed plan for preview/execution.

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": {
      "template": "<template>"
    },
    "name": "seed_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoTemplate size preset (default: small)
excludeNoOptional table names to ignore during template matching
includeNoOptional concrete table list to seed instead of auto-detected template matches
databaseNoOptional: specific connected database name
templateYesBusiness seed template to apply
random_seedNoDeterministic seed for repeatable preview and execution
rows_per_tableNoOptional row-count override for the generated plan
include_childrenNoInclude child tables that reference included template tables (default: false)
include_dependenciesNoInclude parent tables required by foreign keys (default: true)
require_confirmationNoRequire confirm_token for non-dry-run execution (default: true)
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

B3.4/5.0
Behavior3/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 the safety profile is covered and the description's framing as plan generation is consistent with them. However, the phrase "for preview/execution" plus the require_confirmation parameter hints at a possible execution path, and the description never clarifies whether this tool itself writes anything — a meaningful ambiguity for a seeding tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the core action and output front-loaded; the emoji prefix is decorative but harmless. No sentence is wasted, though nothing is said about the plan's contents despite the promise of a preview artifact.

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

Completeness3/5

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

With 11 parameters and no output schema, the description carries extra burden to explain what the returned seed plan looks like, and it does not — it only says a plan is returned. Annotations cover the safety profile, so the remaining shortfall is the shape and downstream use of the plan rather than tool behavior.

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%, so all 11 parameters including scale, random_seed, include_dependencies and rows_per_table are already documented in the schema; the baseline of 3 applies. The description adds only the general notion of FK-awareness and domain-rule application, without explaining how any specific parameter changes the resulting plan.

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?

States a concrete verb and resource ("Creates a plan-first FK-aware seed workflow") and enumerates the three template domains (ecommerce, POS, CRM), so the agent knows exactly what it produces: a seed plan, not seeded data. It stops short of distinguishing itself from near-name siblings like generate_seed_preview or plan_seed_data, leaving the agent to infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by "returns a seed plan for preview/execution," which hints this is the entry point of a pipeline, but no explicit when-to-use, when-not-to-use, or named alternative is given. With siblings such as plan_seed_data and generate_seed_preview present, the missing routing guidance is a real gap.

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