Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

infer_seed_rules

Read-onlyIdempotent

Infers safe seed-generation rules from MySQL schema metadata, sample patterns, unique constraints, and domain presets to create realistic test data without exposing raw PII.

Instructions

🌱 ADVANCED SEEDER: Infers safe seed generator rules from schema metadata, sample row patterns, unique constraints, and optional ecommerce/POS/CRM domain presets without returning raw PII samples.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "infer_seed_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoOptional domain preset for better business-like dummy data (default: auto)
tablesNoOptional table subset to analyze; defaults to schema tables up to max_tables
databaseNoOptional: specific connected database name
max_tablesNoMaximum number of tables to analyze when tables is omitted (default: 50)
sample_sizeNoNumber of sample rows per table used to infer ranges and enum-like choices (default: 25, max: 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, so safety is covered; the description adds real value by naming the inference inputs (schema metadata, sample row patterns, unique constraints) and by promising that raw PII samples are not returned. It still omits cost/latency expectations for sampling up to 100 rows across up to 200 tables.

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?

One dense sentence, front-loaded with the tool category and the key constraint about PII. The emoji prefix and 'ADVANCED SEEDER' label consume space without adding meaning, but the rest is efficient.

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?

For a read-only inference tool with no output schema, the description never characterizes the returned artifact — what a 'seed rule' looks like, its shape, or how many rules come back. An agent knows what it does and what it won't leak, but not what it will actually receive.

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 all five parameters and the domain enum are already documented in the schema. The description adds only high-level meaning ('domain presets', 'sample row patterns') without elaborating on defaults, precedence between tables and max_tables, or how sample_size affects inference quality.

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 specific verb and resource: infers seed generator rules from schema metadata, sample rows and unique constraints, and notes the privacy scope (no raw PII returned). It does not name or distinguish itself from the closely related siblings generate_seed_preview, plan_seed_data, or seed_from_template, 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?

The phrase 'Infer... rules from schema metadata' plus the domain presets implies an analysis step preceding generation, but no explicit when-to-use or when-not-to-use guidance is given. Nothing tells the agent to prefer plan_seed_data or generate_seed_preview at a particular stage.

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