Skip to main content
Glama
aletheia-aegis

aletheia-aegis

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AEGIS_LOCALENoCrisis lifeline localization. Supported values include US, GB, IE, CA, AU, NZ, IN. Default: US.
AEGIS_DEBUG_LOGNoLocal debug file (captures payload text, offline use only). Default: Off.
AEGIS_JUDGE_MODELNoJudge model identifier. Default: Provider default.
AEGIS_METRICS_LOGNoPath to append-only JSONL metrics file. Default: Off.
AEGIS_BLOCK_CHECKSNoCheck IDs to elevate from FLAG to BLOCK. Default: Unset.
AEGIS_JUDGE_POLICYNoJudge policy. Use balanced to protect S6/S3, or strict to join all flags. Default: balanced.
AEGIS_JUDGE_API_KEYNoAPI key for the judge provider. Default: Unset.
AEGIS_JUDGE_PROVIDERNoTier-2 judge provider. Supported values include anthropic, openai, google, openai-compatible. Default: Off.
AEGIS_VERIFY_CITATIONSNoSet to crossref to enable scholarly lookups. Default: Off.

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
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
aegis_check_outputA

Check a model response before it reaches the user. Runs the deterministic output guard across S1 (ungrounded confidence), S2a (unverified identity grants), S3-output (PII/secrets in the response), S4 (literal-trap heuristic, experimental), S5 (high-stakes advice without deferral), S6 (crisis/vulnerability signals), and S7 (institutional amplification). Returns ALLOW, FLAG, or BLOCK with findings, evidence, and remediation. Pass user_prompt when available: S2a, S4 and S6 need it for their main checks. By default it runs offline pattern detectors only (sub-millisecond, no network). If the operator has configured a model judge (AEGIS_JUDGE_PROVIDER plus their own API key), the reply is also reviewed by that model, which catches far more failures; the result's mode and judge fields say what ran.

aegis_verify_citationsA

Opt-in citation verification, separate from the guard. Resolves DOI, arXiv, and PMID identifiers found in the text against their public resolvers (doi.org, arxiv.org, NCBI E-utilities) and reports verified / not_found / unverifiable / unsupported per citation. Case citations and 'et al.' references are unsupported — no public resolver can check them. This tool makes network requests; aegis_check_output never does. An existing identifier is not a true claim — verification answers only 'does this identifier resolve?'.

aegis_run_evalA

Score the guard. Mode 'guard' (default) runs the bundled labeled case set through aegis_check_output and returns a per-signature scorecard with detection rates, false positives, and latency. Mode 'corpus' runs the paper's keyword classifier over a JSONL incident file (default: the bundled sample) and compares the distribution with the paper's published §3.3 totals.

aegis_classify_incidentA

Classify incident text against the paper's keyword vocabulary (Appendix C): returns a per-signature confidence score (min(1.0, hits x 0.4), threshold 0.3) and the matched keywords. Offline annotation tool for corpus work; it classifies incident reports, not model outputs.

aegis_list_signaturesA

List all nine Aletheia signatures with what Aegis checks for each, what stays with aletheia-mcp (S2b, action-side S3), and what is deferred to the planned session auditor (S8).

aegis_get_telemetryA

Live telemetry: evaluation counts by verdict, flag/block rates, latency percentiles, findings by signature and check, and measurement: per-stage latency (patterns, judge, Crossref), judge usage (calls, cache hits, errors, skips, tokens, cost estimate when prices are configured), Crossref outcomes, and judge overrides by signature. Counts and timings only: the audit log and metrics never store response text.

Prompts

Interactive templates invoked by user choice

NameDescription
aegis_output_reviewReview a flagged model response: given the Aegis findings, rewrite the response so it passes the guard — verify or drop ungrounded specifics, add deferrals where advice is high-stakes, and add crisis resources where a vulnerability signal is present.

Resources

Contextual data attached and managed by the client

NameDescription
Aletheia signature coverageAll nine Aletheia signatures with what Aegis checks, what stays with aletheia-mcp, and what is deferred.
Telemetry summaryLive evaluation counts, verdict rates, latency percentiles, findings by signature.
Audit logRecent evaluations (verdicts, finding checks, latency). Response text is never stored.
Last eval scorecardMarkdown scorecard from the most recent aegis_run_eval call in this session.

TDQS

A4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct function: signature reference (list_signatures), offline incident annotation (classify_incident), runtime guarding (check_output), citation resolution (verify_citations), scoring (run_eval), and metrics (get_telemetry). The descriptions explicitly disambiguate the closest pairs, e.g. classify_incident vs check_output ('classifies incident reports, not model outputs') and verify_citations vs check_output ('makes network requests; aegis_check_output never does'). Minor conceptual overlap between classify_incident and run_eval's corpus mode is clarified by scope (single text vs batch eval).

Naming Consistency5/5

All names follow a uniform aegis_verb_noun snake_case pattern: list_signatures, classify_incident, check_output, verify_citations, run_eval, get_telemetry. Verbs are consistently action-oriented and nouns are concise. No mixed conventions or casing deviations.

Tool Count5/5

Six tools is well within the ideal 3-15 range and each maps to a necessary capability: reference, annotation, guarding, citation checking, evaluation, and telemetry. No tool appears redundant or filler.

Completeness4/5

Core lifecycle is covered: inspect signatures, check outputs, verify citations, evaluate the guard, and monitor telemetry, with incident classification for corpus work. Minor gaps remain, such as no tool to retrieve audit log entries (referenced as existing but never text-storing) and no explicit bulk/batch check endpoint beyond run_eval's labeled set. Deferred items (S2b, action-side S3, S8 auditor) are deliberately out of scope per the descriptions.

Maintenance

ActivityNo data
ResponsivenessNo recent community issues