Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGENT_TOOL_FALLBACK_ENCODINGNoFallback encoding for projects with non-UTF-8 files (e.g., EUC-KR) when auto-detection fails. Priority: CLI flag > environment variable > default (UTF-8).UTF-8

Instructions

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

Encoding-aware file, system, remote, data, and analysis tools. File operations preserve detected encoding/line endings and honor .editorconfig.

The default core profile exposes common file/search tools. core-lite exposes only read, write, edit, grep, and toolbox. For other tools, call toolbox describe with compact=true and tool_operation when available, then toolbox call; reuse schema_handle. Large outputs are bounded and pageable. Relative paths use MCP roots.

Groups: core, file, coding, system, remote, data, analysis, windows. Use agent_tool_help (through toolbox in core-lite) for detailed guidance.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
agent_tool_helpA

Returns usage guide for agent-tool. Call this when you encounter encoding warnings, garbled text, or need to understand agent-tool features. Topics: overview, encoding, indentation, tools, debug, analyze, memtool, wintool, codegraph, troubleshooting. tools and analyze return a short index; request one part with topic="analyze/decompile" or topic="tools/ssh,sftp".

editA

Replace exact text in a file. Preserves encoding and local line endings, adapts indentation using the file and .editorconfig, and supports dry-run plus hash-guarded edits.

globA

Finds files matching a glob pattern. Supports ** recursive matching and sorts results by modification time (newest first). Defaults to 200 workspace-relative paths and 32768 characters per page. Skips hidden paths and paths excluded by root .gitignore/.ignore or the common generated/vendor policy unless explicitly included. Returns total/has_more/truncated metadata and an opaque next_cursor.

grepA

Regex-search encoding-aware files or directories. Supports context, glob filters, content/file/count modes, ignored-path controls, and bounded pageable output. Directory searches skip detected binaries; explicit files are searched.

listdirA

Lists directory contents with bounded, pageable output. Default: flat listing, max_depth=3, max_entries=500. When has_more=true, pass next_cursor as cursor to fetch the next page. Filter by type with directories_only or files_only, and by entry-name glob with name_pattern (single) or include (multiple OR patterns, e.g. ["A*", "*.go"]). Use counts_only=true for counts without names, flat=false for a visual tree, and relative_paths=true to save tokens. Skips hidden entries and common build/vendor directories during recursion.

multieditA

Applies multiple old_string -> new_string replacements to a single file in one call. Edits are applied sequentially in order; each edit sees the result of the previous one. Atomic: if any edit fails, the file is not modified at all. Encoding-aware: preserves original file encoding (UTF-8, EUC-KR, Shift-JIS, etc.). Line-ending aware: old_string matches whether the file uses CRLF or LF, and inserted newlines follow the region being edited (mixed-newline files stay intact). Use dry_run=true to preview all changes without modifying the file.

multireadA

Reads multiple files in a single call to reduce API round-trips. Encoding-aware: auto-detects each file, with optional global/per-file encoding overrides. Supports offset/limit for reading specific line ranges. Defaults to 200 lines per file and 32768 characters total across the call. Returns visible per-file and overall truncation metadata with continuation positions. Resume the same input list with start_file_index=next_file_index and resume_offset=next_offset (omit resume_offset when zero). Use file_paths or paths (string array) with global offset/limit, or files (object array) for per-file offset/limit. If a file fails, the error is included in output and remaining files continue. Maximum 50 files per request.

patchA

Applies a unified diff patch to a file. Parses @@ hunk headers, verifies context lines, and applies changes. Encoding-aware: preserves original file encoding. Line-ending aware: each line keeps its own ending (a mixed CRLF/LF file is not rewritten) and a file without a trailing newline does not gain one. Use dry_run=true to preview without modifying the file.

readA

Read text with line numbers or return raster images as ImageContent. Detects common encodings; SVG stays text. Text is bounded and reports truncation/next_offset. Use offset/limit to page; relative paths use the workspace or MCP root.

toolboxA

Discover and call tools without loading every schema. Use describe, preferably compact with tool_operation, then call with arguments. Reuse schema_handle. output retrieves preserved paged command output. job collects results of calls that returned a job_id, limited to the originating MCP session. list shows tools; enable/disable/profile manage direct bindings. Profiles: core-lite, core, coding, remote, analysis, full.

writeA

Create or overwrite a file. Preserves existing encoding, uses .editorconfig for new files, and creates parent directories.

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

Tools are mostly distinct: read vs multiread and edit vs multiedit split cleanly along single-vs-batch lines, and glob (name pattern) vs grep (content regex) target different search intents. The main soft overlaps are edit vs patch (both modify files, one by exact-string, one by unified diff) and multiedit vs patch, but descriptions make the boundaries clear enough for an agent to choose.

Naming Consistency3/5

Most names are single lowercase words with no separator (edit, write, read, grep, glob, patch, listdir), which is internally readable. But conventions are mixed: some are verbs (edit, write), some are nouns (glob, listdir, toolbox, multiedit, multiread), and agent_tool_help breaks the pattern entirely with a snake_case prefix.

Tool Count5/5

Eleven tools sit comfortably in the well-scoped 3-15 range for a coding/file-manipulation agent toolkit. Each tool maps to a recognizable operation (read, write, edit, patch, search, list, help, dynamic tool access) with no obvious filler.

Completeness4/5

The surface covers the core lifecycle: read/list/search (read, multiread, glob, grep, listdir), create/modify (write, edit, multiedit, patch), plus help and dynamic tool discovery. Notable gaps are file deletion, move/rename, and explicit directory creation, though write implicitly creates parent dirs and agents can often work around the rest.

Maintenance

ActivityActive
ResponsivenessLimited data