Query MySQL
mysql_queryRun one parameterized read-only MySQL SELECT, WITH, SHOW, DESCRIBE, or EXPLAIN statement against a configured connection; writes are rejected and returned rows are capped.
Instructions
Run exactly one parameterized read-only MySQL statement. Works in every environment, including prod. Data MCP rejects writes, locking reads, file access, session mutation, multiple statements, and selected resource-exhaustion functions; it also runs the statement in a read-only transaction and caps returned data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Exactly one read-only MySQL SELECT, WITH, SHOW, DESCRIBE, or EXPLAIN statement. Use ? placeholders for values. | |
| max_rows | No | Maximum rows returned to the model. | |
| parameters | No | Positional values for SQL ? placeholders. Values may be string, finite number, boolean, or null. | |
| timeout_ms | No | Client-side query timeout in milliseconds, from 1000 through 120000. | |
| connection_id | Yes | Configured connection ID, for example prod-main or test-main. | |
| response_format | No | Response rendering: markdown for humans or json for programmatic processing. | markdown |