daf-jev
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| JEV_MODEL | No | Default model. | jev-latest |
| JEV_JITTER | No | Uniform ± jitter on the delay (float >= 0). | 0.1 |
| JEV_API_KEY | No | API key. If not set, tools return errors. | |
| JEV_TIMEOUT | No | Default request timeout in seconds (positive float). | |
| JEV_BASE_URL | No | API base URL override. | https://api.typesafe.ai |
| JEV_BACKOFF_MAX | No | Backoff cap in seconds. | 8.0 |
| JEV_BACKOFF_BASE | No | Base backoff delay in seconds (float > 0). | 0.5 |
| JEV_MAX_ATTEMPTS | No | Max attempts including the initial request (int >= 1). | 3 |
| TYPESAFE_API_KEY | No | Alternative API key. | |
| TYPESAFE_BASE_URL | No | Alternative API base URL override. | https://api.typesafe.ai |
| TYPESAFE_DEFAULT_MODEL | No | Alternative 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
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| jev_askB | Ask named questions about one state in a single API call.
|
| jev_evaluateB | Evaluate a fixed question set over many states, concurrently. Returns the aggregate summary only (no per-state records):
|
| jev_modelsA | List available model cards as dicts. When |
| jev_composite_scoreA | Expected value of a score distribution over its level indices.
|
| jev_confidence_gateA | Return Local deterministic routing over a synthesized choice answer — no API
call.
|
| jev_tiered_gateA | Two-threshold confidence routing (automate / review / escalate).
|
| jev_docs_verifyA | Verify the docs/reference snapshot against its manifest.
Same verifier as the |
| jev_posteriors_loadA | Load and validate a bayesnet posteriors sidecar document.
Same loader as the |
| jev_reask_planA | Build the max-entropy re-ask plan from a posteriors sidecar.
Same policy as the |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| _docs_snapshot | Resource body for ``jev://docs/snapshot`` (the shipped snapshot). |
TDQS
Scored across 9 tools
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.
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).
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.
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.