get_statements_with_errors
Identify MySQL queries causing errors or warnings to pinpoint problematic application SQL statements and improve database performance.
Instructions
Get statements that produce errors or warnings.
Identifies queries with:
Error counts
Warning counts
Error rates
Helps identify problematic application queries.
Note: This tool excludes queries against MySQL system schemas (mysql, information_schema, performance_schema, sys) to focus on user/application query analysis.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_statements_with_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum statements to return | |
| errors_only | No | Only show statements with errors (not warnings) |