update_rows
Update Rows
Update rows in a MySQL table that match a WHERE condition. Provide the columns to update as key-value pairs. Requires a WHERE clause to target specific rows unless confirmUpdateAll is explicitly set.
update_rows
Update rows in a MySQL table that match a WHERE condition. Provide the columns to update as key-value pairs. Requires a WHERE clause to target specific rows unless confirmUpdateAll is explicitly set.
manage_table
Create, alter, or drop a MySQL table. Supports creating tables with columns, constraints, foreign keys, and storage engine selection. For altering tables, supports adding columns, dropping columns, renaming columns, modifying column types, and renaming the table.
insert_rows
Insert one or more rows into a MySQL table. Provide the data as an array of objects where keys are column names and values are the data to insert. Supports inserting multiple rows in a single operation and handling duplicate key conflicts.
manage_indexes
Create or drop indexes on MySQL tables. Supports standard, unique, fulltext, and spatial indexes. Useful for optimizing query performance by adding appropriate indexes.
execute_query
Execute an arbitrary SQL query against the MySQL database. Supports all SQL operations including SELECT, INSERT, UPDATE, DELETE, and DDL statements (CREATE, ALTER, DROP). Returns column metadata and result rows for SELECT queries, or affected row counts for DML/DDL statements. Supports complex queries with joins, subqueries, CTEs, window functions, and aggregations.
manage_users
Create, drop, or manage MySQL user accounts and their privileges. Supports granting and revoking permissions at the global, database, table, or column level. Can also list existing users and their grants.
delete_rows
Delete rows from a MySQL table that match a WHERE condition. Requires a WHERE clause to target specific rows unless confirmDeleteAll is explicitly set.
list_tables
List all tables in a MySQL database. Returns table names, types, engines, row estimates, and size information. Also supports listing views.
describe_table
Get detailed schema information for a specific MySQL table, including columns, data types, constraints, indexes, and foreign keys. Useful for understanding table structure before building queries or modifying schemas.
list_databases
List all databases on the MySQL server. Returns database names, default character sets, and collations. Optionally includes system databases (information_schema, performance_schema, mysql, sys).
manage_database
Create or drop MySQL databases. Supports IF NOT EXISTS for creation, IF EXISTS for drops, and optional default character set and collation settings.
Execute SQL queries to read, insert, update, and delete data in MySQL databases. Create and manage databases, tables, indexes, views, and other schema objects. Inspect schema metadata including columns, constraints, and indexes via INFORMATION_SCHEMA. Run stored procedures and user-defined functions. Manage user accounts and privileges. Execute transactions with ACID compliance. Bulk import and export data in CSV and delimited formats. Stream real-time data change events (inserts, updates, deletes, schema changes) via binary log (binlog) replication for change data capture (CDC).
Common questions about connecting Mysql to AI agents with Metorial.