Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOC_REVIEW_PORTNoPort for the local UI server; first such port to try.8080
DOC_REVIEW_TOKENNoThe link token used to authenticate the UI link, kept in ~/.config/doc-review/token.

Instructions

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

Lets the user review a document in a local web UI (Google-Docs-style margin comments on .md/.txt/.tex) and hand the comments to you. Loop: review_open(path) -> tell the user the URL -> review_wait (blocks until they press Send to AI) -> edit the files to address each comment -> review_resolve each one with a short note, or review_reply kind=question when you need an answer -> review_finish(summary) -> review_wait again. @path in a comment refers to a workspace file; #tag to a concept defined with review_define_tag. On {status:"timeout"} just call review_wait again. Recommended default: after telling the user the URL, run everything from review_wait on in a background subagent, if your host has them, so the main thread stays free to talk to the user.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
review_openA

Open a folder (or the folder of a file) in the doc-review web UI and return its URL. The user reads, edits and comments on .md/.txt/.tex files there, then presses "Send to AI". Put the returned url in a chat message before you call review_wait, which blocks for minutes and keeps anything said after it from reaching the user in time.

review_waitA

Block until the user presses "Send to AI", then return every new comment with its file, line, quoted text, context and thread history, plus referenced @files and #tags, and the user's standing instruction for the round if they set one (it overrides the default of editing the files; follow it). Ends the previous round. Returns {status:"timeout"} after timeout_seconds; then call it again to keep listening. This blocks for minutes, so make sure the UI url is already in a chat message before you call it.

review_replyA

Post a message in a comment thread, shown in the margin next to the text. kind=question when you need the user's answer before you can act (the answer arrives in a later review_wait); kind=note to explain or agree (e.g. "Yeah, that's right") without resolving.

review_resolveB

Mark a comment as handled, with a short note shown to the user (e.g. "Corrected", "Rewrote the intro as asked").

review_commentB

Start a new comment thread yourself, anchored on an exact quote from a file (or at the start of the file if quote is empty). Use it to point the user at something: a doubt, a fact to check, a suggestion.

review_finishA

End the current round: the UI unlocks editing and shows your summary and the diff of your changes for the user to accept or revert.

review_threadsB

List comment threads (all, or one file / status) with their current anchor position and messages.

review_styleA

Set, list or clear display rules: colouring and notes that change how files are SHOWN in the UI and never touch what they contain. A rule matches a literal or a regular expression in the files its scope globs select, then paints it (colour, background, bold, italic, underline, strike, dim), attaches a note to it (on hover or inline), or both. Use it when the user asks for something like "colour this nick blue", "give the text in <> a grey background", "dim the timestamps" or "on hover show how long since the previous line". Rules are per workspace and persist.

review_define_tagB

Define or update a #tag for this workspace (a concept, topic or convention, e.g. #image-gs = "Gaussian splatting figures, see figures/gs/"). Tags autocomplete in the UI and their definitions are sent along whenever a comment uses them.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 9 tools

Disambiguation4/5

The tools mostly target clearly distinct actions: opening the UI, waiting, replying in an existing thread, resolving, creating a new anchored comment, finishing, listing threads, styling display, and defining tags. The only subtle overlap is between review_wait ending a previous round and review_finish ending the current round, but the descriptions help clarify the lifecycle.

Naming Consistency5/5

All nine tools use the same review_ prefix with lowercase snake_case suffixes, and the suffixes consistently describe the action or resource. There is no mixing of camelCase, PascalCase, or inconsistent verb styles.

Tool Count5/5

Nine tools is well-scoped for a collaborative document-review workflow with UI interaction, threaded comments, round management, and style/tag configuration. Each tool appears to earn its place without obvious redundancy.

Completeness4/5

The surface covers the core review lifecycle: open, wait, comment, reply, resolve, list threads, finish, plus styling and tag definitions. Minor gaps such as editing/deleting existing comments or explicitly reopening resolved threads are not exposed, but agents can likely work around them.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues