Skip to content

Tools Overview

Ganglia exposes tools over MCP organized into ten categories. Every tool has its own page — use the sidebar to navigate or follow the links below.

ToolWhat it does
code_filesList all indexed files
code_tocTable of contents (files + symbols with line numbers)
code_grepSearch code content by regex pattern
code_searchFind symbols by name or natural language
code_getRead a specific function or class
code_signatureRead only the signature line of a function
code_structureProject structure tree
code_summaryFull project overview
code_quickNatural language query — auto-routes to the best tool
ToolWhat it does
code_callersWho calls this function?
code_calleesWhat does this function call?
code_contextFunction + callers + callees in one call
code_relatedEverything connected to a symbol (callers, callees, siblings, knowledge)
code_traceFull call chain (controller → DB)
code_importsWho imports this module?
ToolWhat it does
code_impactWhat breaks if I change this? (severity scored)
code_hotspotsMost-called, most-complex, or largest code
code_deadUnreachable code with no callers
code_diff_contextGit diff + all affected callers
code_changelogFunction-level git history
code_mapASCII architecture diagram
code_error_contextCode around a specific error line
ToolWhat it does
code_routeHTTP route → handler mapping
code_route_traceRoute → controller → service → DB
code_schemaDatabase schema (Drizzle/Prisma/TypeORM)
code_envEnvironment variable definitions and reads
code_typeTypeScript type/interface definition
ToolWhat it does
code_rename_symbolPreview all locations before renaming
code_type_usagesAll places a type is used
ToolWhat it does
code_memoryPersist decisions and context across sessions
code_knowledgeSave notes linked to code nodes in the graph
code_annotateAdd persistent notes to a specific function
ToolWhat it does
code_buildCompile and map errors to graph functions
code_testRun tests, map failures to functions
code_lintLint and map warnings to functions
code_execRun arbitrary commands

Requires GL_SMART_READ=true in the MCP server environment.

ToolWhat it does
code_smart_readLLM digest of a function (80–90% fewer tokens)
code_smart_grepSearch + summarized answer
code_smart_diffExplain changes and impact in plain language
code_smart_contextMemory-first understanding — checks cache first
ToolWhat it does
code_patternsAuto-detect project patterns from the codebase
code_rulesGet project rules by scope (frontend/backend/testing/all)
code_configRead and write CLAUDE.md configuration files
ToolWhat it does
zone_guardIntercept tool calls touching marked nodes
ToolWhat it does
code_test_forFind which test files cover a function
code_projectsList all indexed projects
code_switch_projectSwitch active project context
code_checkpointSave or restore graph state

Index and query external documents (Markdown, CSV, YAML, JSON, plain text).

ToolWhat it does
doc_indexIndex a file into queryable chunks
doc_listList all indexed documents
doc_tocTable of contents for an indexed document
doc_getFetch a specific section (~200 tokens)
doc_queryKeyword search across document chunks