Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JEV_MODELNoDefault model.jev-latest
JEV_JITTERNoUniform ± jitter on the delay (float >= 0).0.1
JEV_API_KEYNoAPI key. If not set, tools return errors.
JEV_TIMEOUTNoDefault request timeout in seconds (positive float).
JEV_BASE_URLNoAPI base URL override.https://api.typesafe.ai
JEV_BACKOFF_MAXNoBackoff cap in seconds.8.0
JEV_BACKOFF_BASENoBase backoff delay in seconds (float > 0).0.5
JEV_MAX_ATTEMPTSNoMax attempts including the initial request (int >= 1).3
TYPESAFE_API_KEYNoAlternative API key.
TYPESAFE_BASE_URLNoAlternative API base URL override.https://api.typesafe.ai
TYPESAFE_DEFAULT_MODELNoAlternative default model.jev-latest

Instructions

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

daf-jev: a modular, composable client and decision toolkit for the TypeSafe Jev (System One) API. Use jev_ask to ask named questions (noul / choice / score) about a state in a single call, jev_evaluate to run a fixed question set over many states concurrently, and jev_models to list or pick models. Deterministic decision helpers (jev_composite_score, jev_confidence_gate, jev_tiered_gate) combine answers locally with no API call. jev_docs_verify checks the docs/reference snapshot against its manifest; the jev://docs/snapshot resource summarizes it. Question specs follow the daf-jev CLI grammar (noul:, choice::k=desc,..., score::l1,l2,...) or native {type, instructions, criteria} dicts.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
jev_askB

Ask named questions about one state in a single API call.

questions maps question id to either a CLI ask-spec string (noul:<instructions>, choice:<instructions>:k=desc,..., score:<instructions>:l1,l2,...) or a native {type, instructions, criteria} dict. Returns {model, answers: {id: answer dict with type}, usage, request_id}; request_id is omitted when the API did not return one. provider selects the registered API provider (default jev).

jev_evaluateB

Evaluate a fixed question set over many states, concurrently.

Returns the aggregate summary only (no per-state records): {n_states, n_errors, total_input_tokens, total_output_tokens, mean_latency_s, p95_latency_s, questions}. Raises ValueError on an empty states list or a state that is neither a string nor a JSON object/array. provider selects the registered API provider (default jev).

jev_modelsA

List available model cards as dicts.

When pick (latest | first | last) or contains (case-insensitive substring filter on the model name; the empty string is no filter) is given, one card is selected via :func:daf_jev.models.pick_model and returned as a single-element list. Raises ValueError when nothing matches. provider selects the registered API provider (default jev).

jev_composite_scoreA

Expected value of a score distribution over its level indices.

probabilities maps level index (as a string) to probability. With weights (one per level, positional order matching the sorted level indices) the distribution is re-weighted as in :func:daf_jev.compose.composite_score. Requires at least 2 levels; probabilities must be finite and non-negative and keys integer level indices (ValueError otherwise). provider is validated against the registry; local math is provider-agnostic.

jev_confidence_gateA

Return choice when confidence >= threshold, else below.

Local deterministic routing over a synthesized choice answer — no API call. provider is validated against the registry; the gate is provider-agnostic.

jev_tiered_gateA

Two-threshold confidence routing (automate / review / escalate).

confidence >= high -> high_label, >= low -> middle_label, otherwise low_label. Non-finite thresholds raise ValueError; a NaN confidence escalates (fail closed). Local and deterministic — no API call. provider is validated against the registry; the gate is provider-agnostic.

jev_docs_verifyA

Verify the docs/reference snapshot against its manifest. manifest selects an explicit manifest path; None (default) verifies the shipped snapshot manifest (daf_jev.docs_verify.DEFAULT_MANIFEST).

Same verifier as the daf-jev docs-verify CLI command (:func:daf_jev.docs_verify.verify_manifest). On success returns {manifest, pages, missing, drifted, added, ok}; when the manifest cannot be read or parsed, returns {error, message, ok: false} instead. An unknown provider returns the {error, message, ok: false} shape instead of raising.

jev_posteriors_loadA

Load and validate a bayesnet posteriors sidecar document. path selects the sidecar JSON file; graphspec_path optionally supplies a dafjev.bayesnet/1 GraphSpec document to cross-check the sidecar's variables and states against.

Same loader as the daf-jev posteriors-load CLI command (:func:daf_jev.bayesnet_posteriors.load_posteriors). On success returns {ok, format, evidence_count, variable_count, min_row_sum_deviation, max_row_sum_deviation}; when the document fails validation, returns {error, message, ok: false} instead.

jev_reask_planA

Build the max-entropy re-ask plan from a posteriors sidecar. path selects the sidecar JSON file; graphspec_path optionally supplies a dafjev.bayesnet/1 GraphSpec document to cross-check the sidecar's variables and states against; asked lists variables already asked (excluded from the plan).

Same policy as the daf-jev posteriors-reask CLI command (:mod:daf_jev.reask): next variable = max entropy among not-yet-asked posterior rows, ties broken by the sidecar's insertion order. Only dafjev.bayesnet-posteriors/1 sidecars are accepted. On success returns {next_question, entropy, queue, evidence}; when the document fails validation, returns {error, message, ok: false} instead.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
_docs_snapshotResource body for ``jev://docs/snapshot`` (the shipped snapshot).

TDQS

A3.7/5.0

Scored across 9 tools

Disambiguation4/5

Most tools target clearly distinct operations: single-state ask vs. batch evaluate, model listing, local scoring, docs verification, posteriors loading, and re-ask planning. The only real overlap is between jev_confidence_gate (single threshold) and jev_tiered_gate (two-threshold), which could be momentarily confused, though descriptions make the difference clear.

Naming Consistency4/5

All tools share a consistent jev_ prefix and snake_case, which is highly predictable. The only minor deviation is mixing verb-style names (ask, evaluate, docs_verify, posteriors_load, reask_plan) with noun-style names (models, composite_score, confidence_gate, tiered_gate).

Tool Count5/5

Nine tools is well within the sweet spot and each maps to a distinct CLI-adjacent capability (ask, batch evaluate, models, score, two gates, docs verify, posteriors load, reask plan). No tool feels redundant or padded.

Completeness4/5

The surface covers the core lifecycle: querying/asking, batch evaluation, model discovery, scoring, gating, docs verification, posteriors loading, and re-ask planning. Minor gaps exist, such as no tool to validate/load a GraphSpec on its own or to write/save sidecars, but agents can work around these via CLI equivalents.

Maintenance

ActivityActive
ResponsivenessNo recent community issues