slow_queries
Find slow database queries by mean execution time on MySQL and PostgreSQL; get steps to enable required statistics when unavailable.
Instructions
List the slowest queries by mean execution time (MySQL: performance_schema statement digests; PostgreSQL: pg_stat_statements). If the statistics source is unavailable, returns instructions for enabling it instead of failing.
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": "slow_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| database_url | No |