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.

repowise indexes this repository's code graph, git history and decisions.

  • search_codebase(query) finds an identifier or literal: lines are read from live files; complete: true means every match.

  • get_context(targets=[symbol], include=["references"]) before a rename: a complete list is the whole edit set. include=["files"] on a directory lists its files and tests.

  • get_answer(question): one how/where/why question per call.

  • get_why before changing an established pattern. No index: tell the user to run 'repowise init --yes --no-prose' (no API key or model calls). Suggest it, do not run it yourself.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
get_answerA

Answer a how, where, or why question in one evidence-grounded call.

High confidence may be used directly; medium and low lead with the
evidence to verify. ``candidate_files`` ranks files worth opening that
the citations do not name.

Args:
    question: One question about one subject. Split "where is X and
        when does Y run" into two calls; do not paste a whole
        multi-part task.
    scope: repository-relative path prefix.
    repo: usually omitted.
    include: ``["evidence"]`` expanded evidence; ``["diagnostics"]``
        adds ``retrieval_quality``.
get_contextA

Triage card for files / modules / symbols — relationships, not source bytes.

Returns summary, signatures with lines, hotspot, fix_history and
decision titles; either risk cue means get_risk. Batch targets in one
call. Whole file, body-elided and line-verified: include=["skeleton"]
in ONE call, or Read it; do not call get_symbol per signature. Rename:
include=["references"] is the whole edit set when ``complete``. Which
files in a directory lack tests: include=["files"] on it.

Args:
    targets: paths, "path::Symbol", "component:<name>",
        "change:<id>" (pr-123 or a sha), "package:<name>".
    include: callers | callees | references (+ adds comments) | skeleton | skeleton+
        | files | symbols (all, not top 15) | decisions | full_doc
        | ownership | last_change | metrics | community | health
        | doc_drift | changes | provenance | suspects | facts.
    compact: False adds structure, imports, docstrings.
    symptom: issue text or stack trace to rank ``suspects`` on.
    repo: usually omitted.
get_symbolA

Follow-up read of one symbol whose id another response already gave you.

**Not an entry point.** ``get_answer`` ships ``symbol_bodies``; for a
whole file ``get_context(include=["skeleton"])`` or a Read is one call.
Never walk a file symbol by symbol. Returns verified, line-numbered
source; a truncated result carries the ``continuation`` to pass back.

Args:
    symbol_id: "path/to/file.py::Name", "path/to/file.py:140-180" for a
        live range, or an omission ref. A bare file path is not an id.
    depth: 1 (default) is this symbol alone; 2-3 also returns the bodies
        it calls, transitively, in ``callee_bodies``.
    context_lines: extra lines before/after (0-50).
    query: regex/substring filter on an omission ref's lines.
    id, reference: aliases for ``symbol_id``.
    repo: usually omitted.
get_whyA

Why this code is shaped this way — decision records + evidence commits.

Call before a refactor or pattern divergence. Query: a question, a file
path, a question with ``targets``, or nothing (decision dashboard).
A path gets the rules in force first, then labelled background records.
``authority: accepted`` means somebody signed the decision;
``answer_basis`` names the strongest evidence lane, and only
``decision`` is a ruling.

Args:
    query: question, file/module path, or omit for the dashboard.
    targets: file paths to anchor the search.
    id: decision or ``ev_...`` evidence id from any tool.
    reference: structured evidence reference.
    repo: usually omitted.
    include: ``["history"]``: a path's origin story, commits, episodes.
search_codebaseA

Find code by concept, symbol, or path — hybrid codebase search.

For a how/where/why question call get_answer. Use this to enumerate
matches, resolve an identifier to a symbol_id, or find files for
get_context. Identifier, literal, `a|b|c` or regex queries return
`lines` (path, line, kind, text; definitions first, one group per
alternative) read from live files; when `complete` is true they are
every match, so no grep is needed. `candidates` lists
distinct files to Read, best first.

Args:
    query: identifier, `a|b` alternation, regex, path, or natural language.
    limit: max results (default 5).
    mode: auto (by query shape) | symbol | path | concept | hybrid.
    kind: implementation | test | config | doc.
    symbol_kind: function | class | method | ...
    page_type: file_page | module_page.
    repo: alias, or "all" for workspace-wide.
    pattern: alias for query.

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 5 tools

Disambiguation3/5

The core intents (search, triage context, symbol body, question answering, decision history) are broadly distinct, but the descriptions spend large amounts of text telling the agent which sibling *not* to use ("Not an entry point", "For a how/where/why question call get_answer"). get_answer and get_why both claim the "why" space, and get_context vs get_symbol both return source-ish content, so boundaries are guidance-dependent rather than intrinsic.

Naming Consistency4/5

Four of five tools follow a clean get_* verb_noun pattern and the fifth (search_codebase) is a standard verb_noun variant for its query-based role. Minor deviation only, still highly readable and predictable.

Tool Count5/5

Five tightly focused tools, each mapped to a distinct retrieval mode (question, search, triage, symbol read, decision recall). Nothing feels padded or redundant in raw count for a code-intelligence server.

Completeness4/5

Retrieval lifecycle is well covered: discovery (search_codebase), orientation (get_context), deep read (get_symbol), rationale (get_why), and synthesized answers (get_answer), with cross-tool chaining via symbol_id/omission refs. Gaps are limited to no repository/workspace enumeration entry point and read-only scope (no edit or index-refresh operation), which agents can mostly work around.

Maintenance

ActivityActive
ResponsivenessSyncing