Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

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

Tools

Functions exposed to the LLM to take actions

NameDescription
search_pairsA

Cosine-search the substrate's correction-text embeddings.

    Returns the top-K most-similar pairs to `query`, each as a dict
    with pair_idx, session_id, premise_preview (≤200 chars),
    correction_preview (≤200 chars), and cosine score in [-1, 1].

    Requires `features.npz` (built by `weighted-compact bootstrap`)
    and the [baselines] extra (sentence-transformers). On the first
    call the e5-multilingual-small model is loaded into memory and
    cached for subsequent calls.

    On missing substrate or import error returns a single dict with
    an `error` key rather than raising — the stdio loop must not die
    on a misconfigured client.
    
compact_sessionA

Assemble a compacted-markdown view of the source pair's session.

    Hides the source pair (so it can be used as ground truth in
    reconstruction-QA) and returns the remaining session pairs
    ranked by the chosen scoring source, truncated to keep
    `(1 - k_drop)` of the session.

    Args:
        source_pair_idx: index into pairs.jsonl identifying the
            pair whose session should be compacted. The pair itself
            is hidden from the output.
        k_drop: fraction of session pairs to drop (0.0 = keep all,
            0.9 = aggressive compaction).
        ranker: scoring source. Currently only "importance" is
            supported here (query-aware rankers belong in
            search_pairs).
        rem_decay: if True, multiply scores by the nightly REM-decay
            map (requires `weighted-compact rem-pass` to have run).

    Returns a dict with `markdown` (the compacted context, ready to
    paste into a prompt) and `meta` (budget-transparency: pairs_total,
    pairs_kept, input_chars, output_chars, tokens_estimate,
    compaction_ratio, signals_top3, ranker label).

    On invalid input or missing substrate returns a dict with an
    `error` key rather than raising.
    
substrate_infoA

Report what's built and what isn't — cheap diagnostic.

    Returns a dict with pair_count, session_count, has_importance,
    has_rem_decay, rem_decay_ref_iso (ISO timestamp of the last
    REM pass), and signals_present (names of the importance mixture
    components). Includes path of the substrate workdir.

    Use this on connect to know which other tools will succeed
    without paying their setup cost first. Always returns a dict
    even when nothing is built.
    

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/zzallirog/weighted-compact'

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