Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

validate_seed_integrity

Read-onlyIdempotent

Validates seeded MySQL data against a seed plan by checking foreign-key orphans, required columns, unique collisions, and inserted row counts to catch integrity issues.

Instructions

🌱 RELATIONAL SEEDER: Validates seed results with FK orphan checks, required-column checks, unique-collision checks, and inserted row-count checks.

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": {
      "plan_id": "<plan_id>"
    },
    "name": "validate_seed_integrity"
  }
}

Input Schema

NameRequiredDescriptionDefault
tablesNoOptional table subset to validate
plan_idYesSeed plan ID returned by plan_seed_data
check_orphansNoAlias for check_foreign_keys
check_row_countsNoCheck inserted row counts when execution metadata is available (default: true)
check_foreign_keysNoCheck foreign key integrity (default: true)
check_required_columnsNoCheck NOT NULL required columns (default: true)
check_unique_collisionsNoCheck unique index collisions (default: true)

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 cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added context does real work: it names the four validation classes and discloses that row-count checking only applies 'when execution metadata is available.' It does not disclose the shape of a failure report, but the check semantics are clearly conveyed.

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?

A single front-loaded sentence with the verb and check list packed into it, no redundancy or hedging. The emoji prefix is decorative but does not obscure the content.

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 7-parameter validation tool with no output schema, the definition explains what is checked but not what the agent receives back — per-table pass/fail, orphan counts, or error details — so the agent cannot anticipate the result shape. Combined with no explicit usage ordering guidance, it is adequate but leaves clear gaps.

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% and each toggle already documents its own default and meaning, including the note that check_orphans aliases check_foreign_keys. The description's prose listing of the checks largely mirrors those parameters, so it adds confirmation rather than new semantics; 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?

Uses a specific verb (validates) on a specific resource (seed results) and enumerates the four check categories performed. An agent can distinguish this from planning/generation siblings, though the parenthetical branding 'RELATIONAL SEEDER' adds no differentiating information beyond the verb and the checks it lists.

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: 'validates seed results' suggests it runs after a seed plan is executed, reinforced by the plan_id description pointing at plan_seed_data. There is no explicit when-to-use versus alternatives, no prerequisites (e.g., that seeding must have already happened), and no statement about when to skip validation.

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