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.

Before editing the paper, call guide() and read every file in its read list in full. Work from read_comments(new=True), which returns what the reviewer has written since you last called it, each thread with the rev that a write passes back. read_comments(ids=[...]) returns whole threads, for when you no longer remember a conversation. Read source with your own file tools. Within the user's editing scope, fix what a thread reports, call compile() once after the batch, verify, and reply with edits naming the ranges you changed. When the reviewer should decide the wording, put a suggestion on their thread instead of opening another comment. Respect read-only or discussion-only requests. Answer a question or a request to explain with a reply in its thread, with or without an edit, including on a thread from Overleaf. Each entry in a thread is private or public. A private entry stays on the review page for the reviewer and you: your replies, your suggestions and what the reviewer writes on the page. A public entry is on Overleaf, for everyone in the project. You never send anything public: write_comments with action="overleaf" drafts what should be public, and only the reviewer sends it. After replying, write in chat only what no thread carries, such as a failed tool or a choice left to the user, and do not repeat the replies or the edits they report. When the user asks you to listen, call listen() and follow its how. Do not poll or duplicate it. Unacknowledged presses stay queued. The config is in the startup directory, and its dir can point to the paper's folder anywhere. To set up review or translation, read /app/tex_mcp_web/agent/init.md.

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
guideB

Paths of the files to read in full before editing the paper: the paper's guideline and the guidelines it extends, base first, when guideline is set, and the terms its reference papers use, when references is set.

read_commentsA

Read review threads: what is new, selected threads in full, or a listing. new answers a Call agent press in one call. For each open thread it returns what the reviewer has written that no earlier call with new returned and no answer has covered yet, with the thread's rev, which a write passes back. A thread's last answer covers everything before it; an answer is your reply, your Overleaf draft, or a public reply the reviewer sent to Overleaf. A suggestion the reviewer applied is returned once, as an entry marked applied with the lines it changed. Your wording is then in the file, and the entry needs no reply, except on a thread from Overleaf with no draft, where the change calls for a reply. A suggestion or an Overleaf draft the reviewer rejected is also returned once, as an entry marked rejected with the rejected text, and it stays in the thread for a later read by id. It needs no reply. Do not propose the same thing again unless the reviewer asks; if they give a reason, it is in one of their replies. The answer gives the moment the read started from (from) and the one it moved to (cursor), so a turn that went wrong can be repeated with since=; to see again what was already answered, read the thread by id. A thread from Overleaf is marked on_overleaf, and one the reviewer started for Overleaf but has not sent there yet is marked new_thread; a thread with a draft for Overleaf comes with that draft. An entry is public, on Overleaf for everyone in the project, when it has name (written there) or overleaf (sent there from the page), and so is comment, the first message, of a thread marked on_overleaf. Every other entry is private, for the reviewer and you, and so is everything in a thread that is not on Overleaf. ids returns those threads in full, for when you no longer remember a conversation; with since it returns only the entries after that time. With neither, it returns a listing: the newest limit threads, each request shortened to its beginning and the rest counted in older, narrowed by status, unanswered or since. With find or until it is a search instead, entry by entry: a thread is listed when something said in it between since and until contains find's words, whether the reviewer's, yours, a public reply sent to Overleaf (marked overleaf) or its draft for Overleaf, and it comes with those entries and its location. A long entry is shortened to the words around the match and marked cut, and only a thread's newest few matches are shown, with the rest counted in more_matches; read the thread by id to see it in full. The bounds and the words are each optional, and status="all" also searches closed threads. A thread from Overleaf the reviewer hid on the page has status "hidden": it is set aside, as an archived thread is, so new and the open listing leave it out. on_overleaf limits a listing or a search to Overleaf's threads or to the page's own, which are entirely private, and file limits either to the threads on one source file, each with its lines in source. Times are shown and passed back as MM-DD HH:MM on this server's clock. save requires ids; edit only the Reply and Edit blocks of the saved draft.

overleafA

Compare this folder with its Overleaf project. state reads Overleaf again and reports only what differs: get (Overleaf's edits not here), send (edits here not on Overleaf), choose (files waiting for the reviewer to choose), and, in a git clone, the commits behind and ahead. suggested lists the edits made on Overleaf with track changes on, which wait for the reviewer to accept or reject them on the page; Overleaf's text contains the words of a suggested insertion but not those of a suggested deletion. get brings Overleaf's edits into this folder (git pull in a git clone, Get otherwise); it changes only files here, and a conflict changes nothing. push sends a git clone's commits (git push). Without git, only the reviewer sends edits, from the page.

compileA

Compile the paper. Returns whether it succeeded, which pages changed, where the log is, and, when it failed, where each error is. Call once after a batch of source edits. pages_changed compares extracted PDF text and excludes visual-only changes. Read the log yourself for warnings and for the context around an error. A successful build also reports how the paper fits a page limit, as the page's Problems tab does. body_end is the last line before the bibliography, with its page, its column and the number of columns, the space below it to the end of the text block in points and in lines (once the paper has full columns to measure by), and its source. short_lines lists the paragraphs whose last line is narrower than a quarter of its column, including those in a list item or in centered text such as a table's caption, each with its page, column, words, width and source; shortening such a paragraph removes that line. A source is the line that contains a paragraph's last words.

write_commentsA

Write to a comment thread. What you write is private, on the review page for the reviewer and you. overleaf drafts what becomes public, on Overleaf for everyone in the project, once the reviewer sends it. add: text and anchor, plus changes, quoted as for suggest, when the reviewer has asked for proposals left as comments; the new thread then carries that proposal. reply: id and text, or a saved draft on its own. suggest: id, text, changes, rev. Each change's old is quoted from the file the comment is on and must occur there exactly once, as an editing tool expects; never give a line or a column. It replaces the thread's single current proposal and adds text as a reply, so the conversation stays complete. It is refused on a thread the reviewer has not written in: propose on their thread instead of opening your own beside it. withdraw: id, text, rev. overleaf: id, text, rev, and edits naming the source ranges the reply describes, by their current lines; later edits move these ranges as they move a comment, so the draft does not need rewriting when lines shift. On a thread that came from Overleaf (on_overleaf), it drafts the public reply that the reviewer may send there. A thread has one draft, which this replaces, and only the reviewer sends it. A first message the reviewer wrote themselves (overleaf_draft_by: reviewer) is not replaced: your text is added to the thread as your private reply suggesting the wording. The reviewer is asked first when a file that contains those ranges differs between here and Overleaf. Since the draft is public once sent, word it for the people on Overleaf, and answer what the reviewer asks you in the thread with reply, which is private. With anchor (a source_range) instead of id and rev, overleaf drafts a new public thread for Overleaf on those lines, with text as its first message. The result is a thread that has the draft and is not on Overleaf. Call overleaf with its id and rev to redraft it. Only the reviewer sends it, and only once the current text of those ranges is on Overleaf. The reviewer may discuss the draft with you in the thread before sending it, and those entries are private. A thread the reviewer started for Overleaf (new_thread) is waiting for its first message there. What they wrote in it is private and meant for you, and overleaf with id and rev drafts the message they asked for, keeping the meaning of their words and using the register they asked for. edit: id, entry, text, rev; rewrites an entry you wrote. delete: id; refused once the reviewer has written in the thread. rev is the thread's token from read_comments; if the thread has changed since, the write is refused. edits names the source ranges a reply changed. A field the action does not take is refused. The reviewer resolves threads, not you. Returns id, status and rev.

imageA

Render one PDF target as PNG. Choose exactly one of page (with optional bbox), source="file.tex:lstart-lend", or comment. Margin expands an exact bbox only while rendering. A multi-page source range renders the page with the most SyncTeX matches.

listenA

Return a command and client-specific instructions for listening for Call agent presses. Run the returned command as its how field describes; how is written for the connected client. Stop it when the review is finished or the user asks.

setup_infoA

Report setup paths, the existing binding with the paper's folder it serves, the guidelines to choose from, the path of the tex-mcp-web command, whether translation is set up and with which models, and whether the reviewer's Overleaf cookie is saved, without connecting or changing files.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 8 tools

Disambiguation4/5

Most tools have clearly distinct roles: compile, image, listen, overleaf, read_comments and write_comments target different actions, and the read/write comment pair is a standard, unambiguous split. The only mild overlap is setup_info versus guide, since both surface paths and configuration (setup_info even mentions 'guidelines to choose from' while guide returns guideline paths), which could briefly confuse an agent about where to look first.

Naming Consistency3/5

Names are all snake_case and readable, but conventions are mixed: bare verbs (compile, listen), bare nouns (guide, image, overleaf), a noun phrase (setup_info) and verb_noun pairs (read_comments, write_comments). The pattern is inferable from descriptions but there is no predictable scheme an agent can rely on.

Tool Count5/5

Eight tools is well within the sweet spot and each one earns its place: setup, compilation, guidelines, rendering, event listening, Overleaf sync, and the comment read/write pair. Nothing feels padded or thin for a LaTeX review workflow.

Completeness4/5

The surface covers the core lifecycle: discover setup, read guidelines, compile and inspect errors, render pages, sync with Overleaf, and read/write review threads including proposals and drafts. Minor gaps exist, such as no exposed translation operation despite setup_info reporting translation models, and no dedicated search over the compiled PDF beyond rendering an image, but agents can work around both.

Maintenance

ActivityActive
ResponsivenessNo recent community issues