graph_query
Query the code knowledge graph for callers, callees, inheritance, imports, paths, and neighborhoods to answer relationship questions standard usage or impact analysis misses.
Instructions
Raw access to the code knowledge graph (calls, inheritance, imports), for what find_usages, impact and describe_symbol do not cover. operation: callers | callees | subclasses | superclasses | imports | neighbors | shortest_path | overview | surprising_connections | status | audit (symbol = a C# package folder: SOLID findings, each with its refactor fence). symbol is matched as a case-insensitive substring; results carry file:line.
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": {
"operation": "<operation>"
},
"name": "graph_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | neighbors: hops (1-6). subclasses/superclasses: levels (1-10). | |
| limit | No | Max edges. | |
| top_n | No | overview / surprising_connections: items to return. | |
| source | No | Source name. Omit when only one source applies. | |
| symbol | No | Symbol the operation acts on (not needed by overview / status). | |
| target | No | Destination symbol for shortest_path. | |
| max_hops | No | shortest_path: max path length. | |
| operation | Yes | One of the operations listed in the tool description. | |
| relation_filter | No | neighbors: calls | inherits | imports | imports_from | contains. | |
| min_community_size | No | overview: minimum community size. |