detect_n_plus_one
Analyze recent HTTP requests to identify N+1 query patterns by detecting repeated database queries above a configurable threshold.
Instructions
Detect N+1 query patterns in a request
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": "detect_n_plus_one"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestId | No | Specific request ID (highest priority) | |
| count | No | Number of recent HTTP requests to analyze | |
| since | No | Time duration to look back (e.g., "30m", "1h", "2d", "1w") | |
| all | No | Analyze all available requests (max 100) | |
| uri | No | Filter by URI pattern (substring match) | |
| threshold | No | Min repetitions to flag as N+1 |