mysql
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_HOST | Yes | MySQL server hostname or IP | |
| MYSQL_PORT | No | MySQL server port | 3306 |
| MYSQL_USER | Yes | MySQL username | |
| MYSQL_DATABASE | No | Default database (can be overridden per tool call) | |
| MYSQL_PASSWORD | Yes | MySQL password |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mysql_list_databasesA | List all databases on the MySQL server. Returns database names the current user has access to. Returns:
|
| mysql_list_tablesA | List all tables in a MySQL database. Args:
Returns:
|
| mysql_describe_tableA | Get column definitions for a MySQL table (equivalent to DESCRIBE or SHOW COLUMNS). Args:
Returns column info: Field, Type, Null, Key, Default, Extra |
| mysql_show_create_tableA | Get the full CREATE TABLE DDL statement for a table. Args:
Returns the complete CREATE TABLE SQL with all indexes, constraints, and engine settings. |
| mysql_queryA | Execute a read-only SELECT query against MySQL. Only SELECT and SHOW/EXPLAIN statements are permitted. Use mysql_execute for write operations. Args:
Returns:
Examples:
|
| mysql_executeA | Execute a write SQL statement (INSERT, UPDATE, DELETE, DDL). WARNING: This tool modifies data. Use with caution. Args:
Returns: { affectedRows: number, insertId: number, changedRows: number } Examples:
|
| mysql_table_statsA | Get row count and size statistics for tables in a database. Args:
Returns per table: table_name, row_count, data_size_mb, index_size_mb, engine, create_time |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct operation: reading, writing, describing schema, listing databases/tables, showing DDL, and table statistics. No ambiguity between tools.
All tools share the 'mysql_' prefix and mostly follow verb_noun pattern (e.g., describe_table, list_databases). However, 'mysql_execute' and 'mysql_query' are verb-only, which slightly deviates from the pattern.
With 7 tools, the server covers essential MySQL interactions without being bloated. Each tool serves a clear purpose, making it easy for an agent to navigate.
The set covers core CRUD, schema inspection, and metadata retrieval. DDL operations are handled via mysql_execute, so no major gaps are present. Minor missing features like server version are not critical.