query_graph
Run SQL-like queries on a code symbol graph to filter symbols by kind, role, complexity, and file or name patterns, with ordering and limit options.
Instructions
Run a raw SQL-like structured query against the symbol graph.
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": {
"project_id": "<project_id>"
},
"name": "query_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results (default 50) | |
| filter | No | Filter criteria | |
| order_by | No | Order by field: name, start_line, complexity_cyclomatic, complexity_cognitive | name |
| project_id | Yes | Project ID |