Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

repomap is a map of this codebase. Start with map to see modules, central files and key symbols. Use search to find code by words or identifiers, context for a 360° view of a symbol or file (code, callers, callees, tests), trace for call paths, and impact before editing to see what could break (or impact with changed=true to review the current diff). db maps the database schema and where the code queries each table. Every answer cites file:line.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
mapA

Start here. A map of the repository: modules (communities of files that depend on each other), the most central files (PageRank), the most used symbols, and entry points. Pass focus (a directory) to zoom in and get an outline of its files and symbols with line numbers.

searchA

Hybrid code search over AST chunks (whole functions, methods, classes): symbol names, BM25 keywords and a local code embedding model, so identifiers and plain questions both work, e.g. "parseConfig", "refresh token expiry" or "where are failed requests retried". Returns ranked file:line ranges with the matching lines.

contextA

Everything about one symbol or file: its code, who calls it (with call-site lines), what it calls, subtypes, members, imports, importers and the tests that touch it. Large fixture trees are skipped until targeted (target one, or pass --include-fixtures). Target forms: path/to/file.ts, file.ts:42, Class.method, Class::method, or a bare name.

traceA

With from and to: the shortest call path between two symbols or files, each hop cited file:line (falls back to the file dependency path). With only from: the call tree below it (direction callees) or above it (direction callers).

impactA

What breaks if this changes. Give target (symbol or file, or a list) or changed: true to analyse the current git diff. Returns a risk level, direct and indirect callers with call sites, importing files, modules touched, and the tests to run. Fixture files in deferred trees are not analysed unless targeted; the result says so.

dbA

Map the database: tables, columns, primary and foreign keys, indexes, and the code that queries each table (file:line). By default it reads schema sources in the repo: SQL migrations, Prisma, Drizzle, SQLAlchemy, Diesel and Django models. To inspect a live Postgres, MySQL or SQLite database, pass url_env (the NAME of an environment variable holding the connection string). The connection is strictly read-only and the string is never stored or shown. Pass table for one table's full detail.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 6 tools

Disambiguation4/5

Each tool has a recognizable niche: map for repo overview, search for retrieval, context for a single symbol/file, trace for call paths, impact for change risk, and db for schema. Mild overlap exists between map's `focus` outline and context's file detail, and between trace and impact (both surface callers), but the descriptions make the intended selection clear.

Naming Consistency4/5

All names are short single lowercase tokens with no case or separator mixing, which reads consistently as a terse CLI-style vocabulary. The only wrinkle is a slight verb/noun mix (map, search, trace, impact vs. context, db) and the abbreviation `db` versus full words elsewhere.

Tool Count5/5

Six tools is well within the sweet spot and each maps to a distinct question an agent would ask about a codebase (overview, find, inspect, connect, assess risk, schema). There is no filler or redundant surface.

Completeness4/5

The lifecycle is well covered: discover, navigate, trace dependencies, assess impact, and inspect DB schema, with git-diff analysis folded into impact. Minor gaps remain, such as no explicit file/directory listing outside map's focus mode, no dead-code or unused-symbol view, and no dependency/manifest inspection.

Maintenance

ActivityActive
ResponsivenessLimited data