Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OVERLEAF_URLYesHTTPS origin of your Overleaf/ShareLaTeX instance, for example https://latex.example.org.
OVERLEAF_COOKIEYesBrowser session cookie as name=value, for example overleaf.sid=REPLACE_WITH_YOUR_SESSION.

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

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
list_projectsA

List every ShareLaTeX project the logged-in user can see.

Read-only. Returns one line per project: name, id, then last_updated,
separated by tabs. Archived and trashed projects are omitted. Other
tools accept either the name or the id.
list_filesA

List the full file tree of one ShareLaTeX project.

Read-only. project is a project name or id. Each line is a path inside the project. Folders end with a slash. The bracketed type is folder, doc (an editable text document), or file (an uploaded binary).

read_fileA

Read text from one file in a ShareLaTeX project.

Read-only. project is a project name or id. file_path is the path
inside the project, such as main.tex or chapters/intro.tex. Omit
start_line and end_line to read the whole file. Line numbers are
1-based and inclusive. end_line past the end of the file is clamped.
get_sectionsA

Extract LaTeX section headings from a .tex file.

Read-only. project is a project name or id. Returns one heading per
line: line number, heading command (chapter, section, subsection, and
so on), then the heading title. Starred commands such as \section*
are included.
project_outlineA

Summarize a ShareLaTeX project without reading every file.

Read-only. project is a project name or id. Returns the file tree,
the headings of the root .tex file, and the headings of files pulled
in by \input or \include. The root file is main.tex when it exists,
otherwise the first .tex document that contains \documentclass.
Includes are followed recursively with cycle detection. At most 30 files
are opened. root_file overrides automatic root selection.
read_sectionA

Read one LaTeX section, including its heading.

Read-only. project is a project name or id. title is the heading text inside the braces, such as Introduction. The result runs from that heading through the line before the next heading of the same or higher level. Deeper headings are included. If the title appears more than once, the tool reports the line numbers and does not guess.

search_projectA

Search editable documents in one ShareLaTeX project.

Read-only. project is a project name or id. The match is
case-insensitive. Each hit is path, line number, and a short snippet.
file_pattern filters project paths using glob syntax. max_results is
1..200 (default 30); context_lines is 0..10. Uploaded files are skipped.
write_fileA

Create or overwrite a file in a ShareLaTeX project.

This changes the remote project. The MCP client controls user confirmation.
expected_sha256 optionally guards against stale content (UTF-8 SHA-256). project is a project name or id. An existing text
document is updated in place. An existing uploaded file is re-uploaded.
A missing file is created by upload. content is the full new text.
append_to_fileA

Append text to the end of an existing file in a ShareLaTeX project.

This changes the remote project. The MCP client controls user confirmation.
expected_sha256 optionally guards against stale content (UTF-8 SHA-256). project is a project name or id. file_path must
already exist. A text document is updated in place. An uploaded file
is downloaded, extended, and re-uploaded.
replace_in_fileA

Replace one exact occurrence of text in a ShareLaTeX document.

This changes the remote project. The MCP client controls user confirmation.
expected_sha256 optionally guards against stale content (UTF-8 SHA-256). project is a project name or id. The file must be
an editable text document, not an uploaded binary. old_text must occur
exactly once. new_text may be empty to delete that occurrence.
compile_projectA

Compile a ShareLaTeX project and return errors and warnings.

Read-only with respect to project source. project is a project name or
id. The result starts with the compile status and then lists error and
warning lines from output.log. root_file overrides automatic root
selection. Busy, timeout and unavailable logs are reported explicitly.

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

Disambiguation4/5

The read-side tools have related but distinguishable roles: read_file is line-range based, read_section is heading based, get_sections lists headings, and project_outline aggregates across files. There is mild overlap (read_file with no line bounds could read a section, and get_sections largely duplicates part of project_outline), but descriptions make selection reasonably clear. The three write tools are cleanly separated by intent (create/overwrite, append, single exact replacement).

Naming Consistency4/5

Nearly all tools follow a predictable verb_noun pattern (list_projects, read_file, search_project, write_file, compile_project). The single exception is project_outline, a noun-only name, which breaks the pattern but remains unambiguous. No mixed casing or verb-style chaos.

Tool Count5/5

11 tools is well within the sweet spot and every tool maps to a distinct capability (discovery, reading at three granularities, searching, three editing modes, compiling). Nothing feels like filler or duplication that should be merged.

Completeness3/5

The read/search/edit/compile loop is covered, but there are notable lifecycle gaps: no create_project, delete_project, delete_file, or rename/move file, and no way to fetch compiled output (only log errors) or download an uploaded binary. An agent cannot remove a file or start a new project, which are realistic requests.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues