Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_HANDS_HOMENoConfig directory, default ~/.gemini-hands
GEMINI_HANDS_LANGNozh or en, overrides language in config
GEMINI_SPACE_HOMENoSame as GEMINI_HANDS_HOME (old name)

Instructions

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

These tools run on the owner's computer. Pass absolute paths. There is no workspace-open step. run_command starts in the configured working directory.

Prefer list_dir, grep_search, and find_by_name for looking around. Use run_command for tests, builds, and git.

Non-daemon commands wait on the server before returning. If a command comes back with a task id, call manage_task with Action "status" and that TaskId; the server waits again until it finishes or the hold expires.

When a change touches many files, call execute with an async Python body. Example: text = await tools.read_file({"Path": "/abs/path"}); return text. The same shape works for write_file, edit_file, run_command, manage_task, list_dir, grep_search, and find_by_name.

A path written by one Gemini session is claimed. Another session cannot write that path or its children.

Destructive commands are refused until the user agrees in the chat and the same call is retried with Confirm true.

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
read_fileB

Read a text file. Each call returns at most 800 lines or 46080 bytes.

write_fileA

Create or replace a file. Parent directories are created. Set Overwrite or Append when the file exists.

edit_fileA

Replace every exact occurrence of Target in a file. Target must match the file text, including whitespace.

list_dirB

List one directory. Prefer this over a shell ls.

grep_searchA

Search file contents under a path. Prefer this over a shell grep.

find_by_nameB

Find files or directories by name glob. Prefer this over find or ls.

run_commandA

Run a zsh command. The server waits for it to finish. A long command returns a task id for manage_task.

manage_taskB

List, wait on, write to, or kill a background command from this session.

executeA

Run an async Python snippet that can await tools.* to batch many local operations in one call.

poll_executionC

Wait for an execute snippet that was still running.

cancel_executionB

Cancel a running execute snippet.

server_infoB

Report that this process speaks MCP over stdin and stdout.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 12 tools

Disambiguation4/5

File tools are cleanly separated by action (read/write/edit/list/grep/find), and search-based tools explicitly state which shell command they replace. The one fuzzy area is two parallel task-lifecycle sets: run_command+manage_task for shell processes versus execute+poll_execution+cancel_execution for Python snippets, which an agent could mix up despite the descriptions.

Naming Consistency4/5

Most tools follow a predictable verb_noun pattern (read_file, write_file, list_dir, grep_search, find_by_name, run_command, manage_task, cancel_execution). Two deviations stand out: bare verb 'execute' and noun-only 'server_info', which break the pattern without causing confusion.

Tool Count5/5

12 tools is squarely in the well-scoped range, and each one maps to a distinct capability: file I/O, directory listing, content/name search, shell execution, background task control, and Python batching. Nothing feels redundant or padded.

Completeness4/5

Core file operations (read, write, edit, list, search) plus command execution and async task control cover the agent's lifecycle well. There is no dedicated delete or move/rename file tool, but run_command provides a workaround, making it a minor gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues