Slow queries
slow_queriesIdentify slow database queries by retrieving recent queries sorted slowest first, with the request context for each. Filter by minimum duration and result count to pinpoint performance bottlenecks.
Instructions
Recent database queries sorted slowest first, each with the request it ran in. Use request_detail on that request to see everything else it did.
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 | How many queries to return, slowest first. | |
| minMs | No | Only queries that took at least this many milliseconds. |