Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SELFHEAL_CONFIGNoConfig file path for proxy mode./selfheal.config.json
SELFHEAL_MAX_RETRIESNoMax retry attempts3
SELFHEAL_MAX_DELAY_MSNoMax delay cap30000
SELFHEAL_BASE_DELAY_MSNoBase delay for backoff1000
SELFHEAL_CIRCUIT_THRESHOLDNoFailures before circuit opens5
SELFHEAL_CIRCUIT_COOLDOWN_MSNoCooldown before half-open test120000

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
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
wrap_callA

Execute a function call with retry, circuit breaker, and metrics. Pass a target name and the function will be retried on transient failures. Use this to wrap any unreliable external call.

circuit_statusA

Check the health status of a target. Returns circuit state, failure count, and cooldown.

circuit_resetA

Reset a circuit breaker back to closed (healthy). Use after fixing the underlying issue.

metricsA

Get observability metrics — success rates, latency, top errors, breakdown by tool and target.

recent_errorsA

Get the most recent failed calls with full error details and retry logs.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clear, distinct purpose. circuit_reset and circuit_status are for circuit breaker state management, metrics for system observability, recent_errors for error inspection, and wrap_call for executing calls with resilience. There is no overlap or ambiguity between them.

Naming Consistency3/5

The naming uses snake_case but mixes patterns: some tools start with a noun (circuit_*), some with an adjective (recent_errors), and one with a verb (wrap_call). While readable, the lack of a consistent verb_noun or noun_verb pattern reduces predictability.

Tool Count4/5

With 5 tools, the server covers the essential resilience operations without being bloated. The number is appropriate for a focused self-healing utility, though a few additional tools (e.g., for configuration) could be added without harm.

Completeness4/5

The tool set covers the core lifecycle of circuit breakers, error tracking, and metrics. However, it lacks configuration tools for setting circuit breaker parameters or managing targets, which might be needed for full autonomy.

Maintenance

ActivityInactive
ResponsivenessNo issues