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.

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": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
galley_pingB

Liveness check. Returns 'pong' with the kernel version.

list_projectsA

Returns the one project this kernel was started on, as { projectId: "current", mainFile }. Pass that projectId as project to the other tools.

list_filesA

Lists the live (non-deleted) files of the shared project — exact path + size (UTF-8 bytes when sizeExact, else a cheap lower bound), deterministic order; duplicate-path conflicts are flagged per entry. BINARY files (images/PDFs) appear too, carrying a { kind:"binary", hash, mime } pointer descriptor with an exact sizeBytes — pass that path to read_file to get the pointer. Read-only: changes go through propose_edit / propose_files.

read_fileA

Returns the live replicated text of any project file by EXACT path (as listed by list_files — no normalization, no globbing). Read-only. Files over 2097152 UTF-8 bytes are refused with an error, never truncated. A BINARY file (image/PDF) returns structured metadata { kind: "binary", path, hash, size, mime } instead of text — its bytes are not available through this tool.

project_contextA

Returns the most RELEVANT excerpts across ALL the project's live files for a query (lexical ranking over structural chunks), each with provenance: file path, 1-based line range, and Typst heading path. Budget-limited and read-only: files with duplicate-path conflicts or over the per-file cap are skipped (listed in skipped with a reason), and selectionTruncated reports when relevant chunks did not fit the budget. Use read_file for a complete file.

propose_editA

Applies search/replace edits to a scratch copy of ONE existing text file and publishes the result as a proposal. It never edits the document directly: the change is published for review — if this project has agent auto-accept armed it may apply automatically (the response says status "applied"), otherwise it awaits a human Accept in Galley. Inspect the returned status to know what happened. Each search must match the file's current text exactly once; failures come back as structured data (status: "edit_failed") — refine and retry. To create, rename or delete files, or to change several at once, use propose_files.

propose_filesA

Proposes a change set across MULTIPLE files as ONE atomic proposal — create new files, edit existing ones, rename/move them (rename also moves into a folder), or delete them (e.g. add chapters/intro.typ and #include it from main.typ). It never changes the project directly: the set is published for review — if this project has agent auto-accept armed it may apply automatically (the response says status "applied"), otherwise it awaits a human Accept in Galley. Inspect the returned status to know what happened; the whole set lands all-or-nothing. For edit ops each search must match that file's current text exactly once; failures come back as structured data — refine and retry. Delete is a recoverable soft-delete. Paths must be safe in-tree project paths (leading slash, no traversal, not under /.galley). For binary files you may either inline the bytes (create-binary, base64) or, when the source already lives on the machine running the Galley kernel, reference it by ABSOLUTE local path (create-binary-path) so no base64 transfer is needed — both publish the same content-addressed pointer. A single proposal is capped at 32 ops (with aggregate size limits); to change more files, split the work across multiple sequential propose_files calls — each is reviewed and lands independently (there is no import-group transaction spanning proposals).

compileA

Type-checks the shared project and returns its diagnostics (errors/warnings + page count); never modifies the document. Uses the configured loopback compile service when one is set (--compile-url); otherwise falls back to the paired browser's live preview compiler. Call this after propose_files/propose_edit to confirm the change set type-checks before asking the human to Accept.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 8 tools

Disambiguation4/5

Each tool targets a distinct operation: listing, reading, ranked search, single-file proposals, multi-file proposals, compilation, and liveness. The only mild overlap is propose_edit vs. propose_files, since a single-file edit could arguably go through either, but the descriptions explicitly route create/rename/delete/multi-file work to propose_files. read_file vs. project_context is also well delimited (exact path full text vs. budgeted ranked excerpts).

Naming Consistency4/5

Most tools follow a clean verb_noun snake_case pattern (list_files, list_projects, read_file, propose_edit, propose_files). The deviations — project_context (noun phrase, no verb), compile (bare verb), and galley_ping (namespaced noun) — are readable and easy to remember, but break the otherwise uniform convention.

Tool Count5/5

Eight tools is well within the sweet spot and every tool earns its place: read/list/search for inspection, two proposal paths distinguished by scope, compile for verification, and a ping for liveness. Nothing feels redundant or missing at the structural level.

Completeness4/5

The agent-side lifecycle is nearly complete: discover files, read, search, propose changes (single and atomic multi-file), and type-check. Small gaps remain — there is no way to list or inspect pending proposals after the fact, no accept/withdraw operation, and binary bytes cannot be retrieved (read_file only returns a pointer descriptor).

Maintenance

ActivityActive
ResponsivenessNo recent community issues