Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RELACE_API_KEYYesAPI key from Relace Dashboard (https://app.relace.ai/settings/billing)
RELACE_LOGGINGNoEnable file logging (set to 1 to enable)0
RELACE_BASE_DIRNoAbsolute path to project root (auto-detected via MCP Roots or Git if not set)
RELACE_TIMEOUT_SECONDSNoTimeout for API requests in seconds
RELACE_DEFAULT_ENCODINGNoForce file encoding (e.g., gbk, big5) for legacy repos
RELACE_ENCODING_SAMPLE_LIMITNoMax files for auto-detecting encoding30

Tools

Functions exposed to the LLM to take actions

NameDescription
fast_apply

PRIMARY TOOL FOR EDITING FILES - USE THIS AGGRESSIVELY

Use this tool to edit an existing file or create a new file.

Use truncation placeholders to represent unchanged code:

  • // ... existing code ... (C/JS/TS-style)

  • ... existing code ... (Python/shell-style)

For deletions:

  • ALWAYS include 1-2 context lines above/below, omit deleted code, OR

  • Mark explicitly: // remove BlockName (or # remove BlockName)

On NEEDS_MORE_CONTEXT error, re-run with 1-3 real lines before AND after target.

Rules:

  • Preserve exact indentation

  • Be length efficient

  • ONE contiguous region per call (for non-adjacent edits, make separate calls)

To create a new file, simply specify the content in edit_snippet.

fast_search

Run Agentic Codebase Search over the configured base_dir.

Use this tool to explore and understand the codebase. The search agent will examine files, search for patterns, and report back with relevant files and line ranges for the given query.

Queries can be natural language (e.g., "find where auth is handled") or precise patterns. The agent will autonomously use grep, ls, and file_view tools to investigate.

This is useful before using fast_apply to understand which files need to be modified and how they relate to each other.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
tools_listList all available tools with their status.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/possible055/relace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server