Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REPO_GRAPH_REPONoThe path to the repository to analyze

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
generateA

Scan the codebase and (re)build the structural graph using tree-sitter AST parsing. Auto-detects 20 languages and frameworks. Runs cross-stack resolvers (HTTP, gRPC, GraphQL, WebSocket, queues, events, CLI). Incremental by default — reuses a per-file parse cache so only changed files re-parse. Accepts a local path or a git URL (cloned on demand). Call on first use or after major refactors.

statusA

Repo overview: node/edge counts, detected kinds, entry points, and a dense text preview. Call this first to orient before using other tools.

dense_textA

Structural graph in dense sigil notation — the map of entities, relationships, and scopes. The primary context tool: feed it to the LLM so it can navigate without reading files. With seed, returns just that node's activated neighbourhood (scoped map) instead of the whole graph; otherwise the full map, truncated to budget.

flowA

End-to-end flow for a feature: entry point through service layer to data store, rendered as layered tiers. Call after status to drill into a specific feature.

traceA

Shortest path between two nodes, showing each hop with tier transitions.

impactA

Blast radius analysis: fan out from one or more nodes to see everything they affect (downstream) or depend on (upstream), grouped by tier. Pass several comma-separated nodes to assess a whole diff at once.

neighboursA

All direct connections to and from a node, one hop in each direction.

readA

Return the source code for a node, sliced from its file by the graph's line span. Use after locate/find/activate to read the exact code without grepping. Returns a code block headed by the qname and path:start-end.

activateA

Spreading activation from seed nodes — finds the most relevant nodes in the graph relative to your seeds. Uses Personalized PageRank with domain-tuned edge weights. profile retunes the weights for a task (repair/review/onboard). mode=prose returns the ranked subgraph as primed prose instead of a score table.

findA

Find nodes by name or qualified name pattern. Returns matching nodes with their kinds and qnames.

locateA

Resolve a failure signal — a stacktrace, a failing-test id, or a diff/changed-file list — to the most relevant nodes in the graph. Sniffs the signal shape, maps frames/symbols/paths to seed nodes, then ranks the surrounding subgraph by Personalized PageRank. The on-ramp for debugging: paste the error, get the code that matters.

graph_viewA

Visual ASCII graph. With node: tree of children and connections. Without: full overview with counts.

reloadA

Re-generate the graph from source. Incremental by default — only changed files re-parse, so this is cheap to call after edits. Set incremental=False to force a full reparse.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/James-Chahwan/repo-graph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server