get_longest_running_queries
Identify performance bottlenecks by retrieving the N longest running queries from the completed_requests catalog, helping you pinpoint and address slow operations.
Instructions
Get the N longest running queries from the system:completed_requests catalog.
Prefer this over writing a raw system:completed_requests query via run_sql_plus_plus_query.
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_longest_running_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of queries to return (default: 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |