Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NOTIFY_EMAILNoEmail address to notify when a layer completes (requires sendmail configured).
SLACK_WEBHOOK_URLNoSlack webhook URL used to send notifications when a layer completes.

Instructions

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

Surface-Oracle-Ratchet server for autonomous code optimization. Use sor_init to set up a project, then sor_ratchet to iterate.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sor_initA

Initialize SOR in a project directory.

Call with no config to get a template with defaults and descriptions. Call with a filled config dict to save sor.yaml and generate all artifacts (CLAUDE.md, experiment-loop skill, results.tsv).

sor_add_layerC

Add a new layer to an existing SOR config.

sor_run_oracleB

Run the oracle for a layer without ratcheting (no git commit/reset).

Returns the test result: COMPOSITE score for scored layers, PASS/FAIL otherwise. Useful for checking current state before making changes.

sor_ratchetA

Run one ratchet iteration: oracle -> compare -> git commit/reset -> check stops.

This is the core tool for the experiment loop. Call it after making changes to the mutation surface. It will:

  • Run the oracle tests

  • Compare the score to the previous best

  • Git commit if improved, git reset if not

  • Check all stopping conditions

Returns one of:

  • KEEP score={X} prev={Y}

  • DISCARD score={X} best={Y}

  • DISCARD FAIL

  • STOP:{reason} score={X} attempts={N} kept={K}

sor_statusB

Get current progress for one or all layers.

Shows: attempt count, best score, keeps, last outcome, and proximity to stopping conditions.

sor_resultsA

Query experiment results history.

Returns the last N entries from results.tsv, optionally filtered by layer.

sor_auditB

Generate a comprehensive audit report for a layer.

Includes: summary stats, score progression, convergence analysis, improvement rate, estimated iterations to target, and hypothesis breakdown.

sor_score_historyB

Get the score progression for a scored layer.

Shows each attempt with its score, running best, outcome, and hypothesis. Useful for understanding the optimization trajectory.

sor_hypothesesB

Analyze which hypotheses worked and which didn't for a layer.

Groups experiments by hypothesis and shows: successful (kept), no improvement (discarded), and failed. Includes keep rate.

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 9 tools

Disambiguation3/5

The core actions (sor_ratchet vs sor_run_oracle vs sor_init, sor_add_layer) are clearly distinct, but five read-only reporting tools (sor_results, sor_score_history, sor_status, sor_audit, sor_hypotheses) all derive from results.tsv and overlap heavily. An agent may struggle to pick between sor_results and sor_score_history or between sor_audit and sor_hypotheses for a given question.

Naming Consistency5/5

All nine tools use a consistent 'sor_' prefix with snake_case verb/noun structure (sor_run_oracle, sor_add_layer, sor_score_history). No mixed conventions or camelCase deviations. Highly predictable and readable.

Tool Count5/5

Nine tools is well within the ideal 3-15 range and each maps to a meaningful phase of the experiment loop (init, configure, iterate, inspect). No obvious filler tools beyond the reporting redundancy.

Completeness4/5

The full loop is covered: initialization, layer addition, ratcheting, oracle checks, and rich result reporting (status, history, audit, hypotheses). Minor gaps exist—no tool to remove/update a layer or modify config, and no explicit config-view operation—but core workflows are fully supported.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues