crg
v3.36.0Token-efficient code review knowledge graph: semantic search and call-graph resolution.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
graph Graph
Build and manage the code knowledge graph. Actions: build (full_rebuild, base, repo_root), update (base, repo_root), stats (repo_root), embed (repo_root), export (format, output_path, repo_root), import (import_path, repo_root), import_scip (import_path, repo_root), summarize (max_nodes, repo_root). Use `help` tool for full docs.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
base | string | |
format | string | |
full_rebuild | boolean | |
import_path | ||
max_nodes | integer | |
output_path | ||
repo_root | ||
roots |
query Query
Query the code knowledge graph for relationships, search, and impact analysis. Actions: query (pattern, target), search (search_query), impact (changed_files|base), large_functions (min_lines), spot_check (n -- random callsite snippets from last callers_of/callees_of/inheritors_of/importers_of result), renamed_in_diff (base -- symbols whose callsite line shifted vs base ref), diff (from_sha, to_sha -- nodes added/removed/modified between two commit SHAs). Use `help` tool for full docs.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
as_of | string | |
base | string | |
changed_files | ||
context_lines | integer | |
direction | string | |
edge_kinds | ||
file_path_pattern | ||
from_sha | string | |
kind | ||
languages | ||
limit | integer | |
max_depth | integer | |
max_payload_bytes | integer | |
max_results | integer | |
min_confidence | number | |
min_lines | integer | |
n | integer | |
pattern | ||
repo | string | |
repo_root | ||
search_query | ||
target | ||
to_sha | string |
review Review
Generate token-efficient review context for code changes. Actions: context (default — auto-detects changed files from git diff, returns structural summary, impacted nodes, source snippets, and review guidance), delta (from_sha, to_sha — wraps the `query.diff` buckets and, when show_line_shifts=true, surfaces qualified_names whose line_start moved between the two commits for refactor auditing). Context params: changed_files (auto), max_depth=2, include_source=true, max_lines_per_file=200, base='HEAD~1', repo_root (auto). Delta params: from_sha, to_sha, show_line_shifts=false, repo, repo_roo…
| Parameter | Type | Description |
|---|---|---|
action | string | ``context`` (default) or ``delta``. |
base | string | ``context`` action — git ref for change detection (default: ``HEAD~1``). |
changed_files | ``context`` action — files to review (auto-detected from git if omitted). | |
from_sha | string | ``delta`` action — earlier commit SHA. Required. |
include_source | boolean | ``context`` action — include source code snippets (default: true). |
languages | ``context`` action — optional list of language names (e.g. ``["python"]``) to scope the ``untested_functions`` list. Excludes functions whose language doesn't match. Fixes false positives on cross-l… | |
max_depth | integer | ``context`` action — impact radius depth (default: 2). |
max_lines_per_file | integer | ``context`` action — max source lines per file (default: 200). |
max_tokens | integer | |
repo | string | Phase 2 Task 10 — when non-empty, scope to nodes whose ``repo_id`` matches (e.g. ``repo='repo_a-aaaaaaaa'``). Default ``""`` includes every federated repo. Both actions. |
repo_root | Repository root path (auto-detected). Both actions. | |
show_line_shifts | boolean | ``delta`` action — when True, include nodes whose ``line_start`` moved between ``from_sha`` and ``to_sha`` in the response (default False). |
to_sha | string | ``delta`` action — later commit SHA. Required. |
config Config
Server configuration, status, and model-cell setup. Actions: status (show state), set (key, value -- keys: log_level), cache_clear (wipe embeddings), setup_status (state + configured model cells), setup_start (where the host configures keys), setup_skip (local mode), setup_reset (reset to local), setup_complete (re-resolve from host config). Use `help` tool for full docs.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
force | boolean | |
key | ||
repo_root | ||
value |
help Help
Get full documentation for any tool. Topics: graph | query | review | config | security | recipes. Use when compressed descriptions are insufficient.
| Parameter | Type | Description |
|---|---|---|
topic | string |
security Security
Security scanning over the code knowledge graph. Actions: scan (engine='heuristic'|'semgrep', repo_root), paths (max_depth, source, sink, limit, repo, repo_root), report (format='json'|'sarif', repo_root), suppress (rule_id, remove=false, repo_root), rule_list (engine='heuristic'|'semgrep'). Use `help` tool for full docs.
| Parameter | Type | Description |
|---|---|---|
action | string | |
base | string | |
engine | string | |
format | string | |
limit | integer | |
max_depth | integer | |
remove | boolean | |
repo | string | |
repo_root | ||
rule_id | ||
scope | string | |
sink | ||
source |