find_hotspots
Analyze repository code to rank methods by composite risk from complexity hints and p99 latency, identifying performance hotspots.
Instructions
Return methods ranked by composite risk: complexity_hint x p99.
Methods with both a complexity hint AND high p99 latency are ranked highest.
Methods that have a complexity hint but no perf data are included with
p99_ms=null and risk_score = hint_weight * 100.
Args:
repo_name: The logical name of the indexed repository.
Returns:
List of dicts: ``method_fqn``, ``complexity_hint``, ``p99_ms``,
``p50_ms``, ``risk_score``, ``file_path``, ``line_start``.
Sorted by risk_score descending.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_name": "<repo_name>"
},
"name": "find_hotspots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |