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.

grokmap tracks comprehension debt: code written by AI coding agents that no person on the team has shown they understand.

How to use these tools well:

  • Before you change existing code in a non-trivial way, call comprehension_risk on the files or folders involved. Follow its "advice": the higher the risk, the smaller and better-explained your change should be.

  • When the user asks who knows a part of the code or who should review it, call who_understands.

  • After you finish a substantial change the user will commit, offer once (one line, never forced) to quiz them. If they agree: call quiz_brief with uncommitted=true, ask the questions one at a time as the brief describes, grade honestly, then call record_understanding with the paths the brief gives you.

  • Never call record_understanding without real answers from the person, never round scores up, and never record understanding for code because you wrote it. The ledger is about people.

  • For a branch or pull request, pr_comprehension summarizes the AI-written lines it adds and how many anyone understands. All tools are local: they read git history and the repository's .grokmap/ledger.jsonl, and make no network calls.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
comprehension_riskA

Rate how risky it is to change specific files or folders, based on how much of their AI-written code anyone on the team has shown they understand.

When to use: before editing existing code in a non-trivial way. Follow the returned advice: at high or very high,
keep the diff small, explain the change, and offer a quiz afterwards. For the whole repository use repo_status;
to find a reviewer use who_understands.

Returns {"repo", "results": [...]}, one entry per path with: risk (none, low, medium, high, very high),
lines, ai, understood, skimmed, fading, unread, debt_pct, ai_pct, agents (lines per AI agent), understood_by
(person -> lines), critical_path, advice, and most_unread_files. A path that does not exist has found=false.
Lines count as AI-written when the commit that last changed them carries an AI agent's marker
(e.g. a Co-Authored-By: Claude trailer).
repo_statusA

Summarize comprehension debt for the whole repository: how much code is AI-written, how much of that anyone understands, and which files are riskiest.

When to use: the user asks how much of the code is AI-written, where the risk is, or for an overview. For
specific files you are about to change, use comprehension_risk instead; for change over time, use ai_trend.

Returns {"repo", "head", "risk", "total", "critical_paths", "riskiest_files"}. total and critical_paths hold
lines, human, ai, understood, skimmed, fading, unread, debt_pct, ai_pct, agents and understood_by.
riskiest_files lists up to `top` files with lines, ai_lines, unread, debt_pct and critical. Debt counts unread
AI-written lines in full and skimmed or fading ones (understood over 180 days ago) as half.
who_understandsA

List the people who have shown they understand the AI-written code at a path, and who committed to it lately.

When to use: the user asks who knows this code, who should review a change, or whom to ask. For a risk rating
use comprehension_risk.

Returns {"path", "understood_by" (person -> lines they passed a quiz, explanation or review on), "ai_lines",
"unread" (AI-written lines nobody has checked), "recent_committers": [{"name", "commits"}], "note"}.
Committing code is not counted as understanding it: only recorded quizzes, explanations and reviews are.
quiz_briefA

Build a quiz brief: the exact AI-written lines a person has not yet shown they understand, with rules for quizzing them.

When to use: the user asks to be quizzed, or agrees to a quiz after you finished a change (uncommitted=true for
that change, diff_base='main' for a whole branch, paths for specific code). Ask 2 to 6 questions one at a time,
grade each 0, 0.5 or 1, then call record_understanding with record_with.paths and the mean grade.

Returns {"who", "nothing_to_quiz", "line_count", "truncated", "brief_markdown" (the code and quiz rules),
"record_with": {"tool", "paths", "method", "score"}}. If nothing_to_quiz is true, tell the person there is
nothing new for them to check. Read-only: nothing is recorded until you call record_understanding.
record_understandingA

Record in the shared ledger (.grokmap/ledger.jsonl) that a person showed they understand these lines.

When to use: only after the person actually answered a quiz from quiz_brief, explained the change back to you,
reviewed it, or paired on it, with the score they earned. Never record understanding because you or they wrote
the code, and never round scores up. This is the only tool that writes: it appends to the ledger and changes
nothing else. Lines edited later count as not understood again.

Returns {"recorded", "who", "score", "counts_as" (understood, or skimmed for low scores and reviews),
"files", "lines", "ledger" (its path), "reminder"}.
pr_comprehensionA

Summarize a branch or pull request: the AI-written lines it adds compared with base and how many of them anyone understands.

When to use: before opening or merging a pull request, or when asked how much of a branch is AI-written. For
the whole repository use repo_status. The base ref must exist locally (run git fetch if it is missing).

Returns {"base", "merge_base", "commits", "ai", "human", "understood", "unread", "tools" (AI lines per agent),
"files": [{"path", "ai", "human", "understood", "unread", "partial"}], "markdown" (a ready-to-post PR comment)}.
ai_trendA

Show how much of the code added over time was written by each AI agent versus people, per week or month.

When to use: the user asks how AI use has changed, which agents write the most code, or since when. For
today's totals use repo_status. Counts lines added in commits (from git log), attributed to an AI agent when
the commit carries its marker, e.g. a Co-Authored-By: Claude trailer or a Copilot bot author.

Returns {"by", "summary": {"human", "ai", "ai_pct", "tools" (lines per agent)},
"periods": [{"start", "human", "tools"}]}, oldest period first.

Prompts

Interactive templates invoked by user choice

NameDescription
quiz_meStart a short grokmap quiz on the uncommitted changes.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool has a distinct scope: whole-repo overview (repo_status), per-path risk (comprehension_risk), reviewer lookup (who_understands), quiz generation (quiz_brief), ledger write (record_understanding), branch/PR analysis (pr_comprehension), and time-series (ai_trend). Descriptions explicitly cross-reference siblings ("for the whole repository use repo_status", "for a risk rating use comprehension_risk"), so overlapping-sounding tools are cleanly separated. Read vs. write boundary between quiz_brief and record_understanding is stated unambiguously.

Naming Consistency4/5

All names are snake_case and mostly follow a <subject>_<noun> shape (comprehension_risk, repo_status, quiz_brief, pr_comprehension, ai_trend). Two deviate: record_understanding is verb_noun while who_understands is a question phrase, breaking the otherwise nominal pattern. Still readable and predictable overall.

Tool Count5/5

Seven tools is well-scoped for a comprehension-debt analysis server: six read-only analyses covering repo, file, person, branch, and trend views plus exactly one mutating tool. Each tool earns its place with no filler or redundant variants.

Completeness4/5

The lifecycle is well covered: assess risk, identify reviewers, quiz, record understanding, analyze PRs and trends. Minor gaps remain — there is no way to enumerate or search paths (agents must rely on riskiest_files from repo_status), and no tool to inspect or audit previously recorded ledger entries beyond the latest write.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues