find_endpoint_callers
Trace an HTTP endpoint to its handler and all upstream callers across repository code. Map request flows from route definitions to invoked methods.
Instructions
Find the handler method for an endpoint and all upstream callers.
Args:
http_method: HTTP verb — GET, POST, PUT, DELETE, or PATCH (case-insensitive).
path_pattern: Exact path of the endpoint, e.g. ``/api/users/{id}``.
Returns:
List of dicts with keys ``role`` (``"handler"`` or ``"caller"``),
``fqn``, ``file_path``, ``line_start``.
Empty list if the endpoint is not found.
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": {
"http_method": "<http_method>",
"path_pattern": "<path_pattern>"
},
"name": "find_endpoint_callers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| http_method | Yes | ||
| path_pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |