Skip to content

Prompts

Chris edited this page Jul 7, 2026 · 116 revisions

Workflow Automation: Available Prompts

Tools Resources Prompts
OAuth 2.1 Code Mode

💎 Value Proposition

  • Execute complex logic via Code Mode, reducing token usage by 70-90%.
  • Build AI integrations instantly.
  • Empower agents with secure database access.
  • Scale operations with robust connection pooling.
  • Leverage OAuth 2.1 for enterprise security.

⚡ Instant Workflows: Available Prompts

Core Prompts: Essential Automation

Prompt Description
mysql_query_builder Construct SQL queries with security best practices
mysql_schema_design Design table schemas with indexes and relationships
mysql_performance_analysis Analyze slow queries with optimization recommendations
mysql_migration Generate migration scripts with rollback options

Lazy Hydration Prompts: Instant Access

Prompt Description
mysql_tool_index Show all available tools organized by category
mysql_quick_query Shortcut for running queries
mysql_quick_schema Shortcut for exploring database schema

Health & Ops: Proactive Diagnostics

Prompt Description
mysql_database_health_check Comprehensive database health assessment
mysql_backup_strategy Enterprise backup planning with RTO/RPO
mysql_index_tuning Index analysis and optimization workflow
mysql_sys_schema_guide sys schema usage and diagnostics
mysql_mcp_heal Guide for modifying the codebase to prevent and heal LLM hallucinations

Setup Guides: Expert Configurations

Prompt Description
mysql_setup_router MySQL Router configuration guide
mysql_setup_proxysql ProxySQL configuration guide
mysql_setup_replication Replication setup guide
mysql_setup_shell MySQL Shell usage guide
mysql_setup_events Event Scheduler setup guide
mysql_setup_spatial Spatial/GIS data setup guide
mysql_setup_cluster InnoDB Cluster/Group Replication guide
mysql_setup_docstore Document Store / X DevAPI guide

Accelerate Workflows: Using Prompts

In Claude Desktop or Cursor, you can invoke prompts directly:

Use the mysql_schema_design prompt to design a users table
→ Invokes schema design workflow

Run the mysql_database_health_check prompt
→ Starts comprehensive health assessment

Help me setup replication
→ Uses mysql_setup_replication prompt

Deep Dive: Prompt Features

mysql_database_health_check

Comprehensive health assessment workflow:

  1. Check connection health
  2. Assess performance metrics
  3. Review storage and table health
  4. Check replication status
  5. Generate recommendations

mysql_backup_strategy

Enterprise backup planning:

  • RPO/RTO requirements analysis
  • Choosing backup method (mysqldump, MySQL Shell, XtraBackup)
  • Point-in-time recovery setup
  • Testing procedures

mysql_index_tuning

Index optimization workflow:

  • Identify unused indexes
  • Find missing indexes for slow queries
  • Detect duplicate indexes
  • EXPLAIN analysis for optimization

mysql_sys_schema_guide

Diagnostics using the MySQL sys schema:

  • Analyze I/O usage
  • Find most expensive statements
  • Check for full table scans
  • Investigate excessive locking

Setup Prompts

The setup prompts provide step-by-step guides for advanced MySQL features:

  • Router (mysql_setup_router): Configure MySQL Router REST API endpoints and integrate with InnoDB Cluster.
  • ProxySQL (mysql_setup_proxysql): Deploy query routing rules, digest stats, and connection pooling.
  • Replication (mysql_setup_replication): Initialize source/replica architectures, measure lag, and handle failover.
  • Shell (mysql_setup_shell): Leverage MySQL Shell utilities for robust schema dumps and parallel imports.
  • Cluster (mysql_setup_cluster): InnoDB Cluster and Group Replication setup
  • Spatial (mysql_setup_spatial): Enabling GIS features and creating spatial indexes
  • DocStore (mysql_setup_docstore): Using MySQL as a NoSQL document store
  • Events (mysql_setup_events): Configuring the Event Scheduler

Each guide includes prerequisites, installation steps, configuration commands, and verification tools.


Learn More (See Also)

  • Tools - Complete list of all 200+ tools
  • Resources - Database observability resources

MySQL MCP Documentation

Unlock autonomous database orchestration with an enterprise-grade MySQL MCP server. Featuring blazing-fast sandboxed Code Mode, uncompromising schema enforcement, and seamless ecosystem integrations to power secure, intelligent AI workflows.

🏠 Home


Launch Your Setup


Connect Ecosystem Tools


Enforce Security & Compliance


Scale Your Operations


Explore External Links

Clone this wiki locally