query
Execute SELECT queries to retrieve data from MySQL databases, enabling data reading operations through prepared statements.
Instructions
Execute a SELECT query and return results. Use this for reading data.
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": {
"sql": "<sql>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL SELECT query to execute | |
| params | No | Query parameters for prepared statement |