mcpserver.lol
registry/valem
Connection check verified live · 26h ago

valem

Valem - Deterministic reactive state models. Create your own calculators/forms with AI

Tools 27
GitHub stars
Installs / wk
Licence Apache-2.0
Transport streamable-http
Last checked 26h ago

Tools & capabilities

27 tools

Read from the running server on 26h ago.

create_model spec*
Create a new model from a declarative ModelSpec. The spec carries the JSON schema plus derivations (computed fields), constraints (invariants), and optional effects. Returns the cr…
delete_model can modify data id*
Remove a model from the registry. Fails (isError) if the model does not exist.
download_blob read-only blobId*modelId
Fetch a blob's bytes by id, base64-encoded in the result. Pass 'modelId' to fetch a blob referenced by a specific model (access-scoped); omit it for a direct store fetch. Large blo…
dry_run read-only spec*mutations
Compile a candidate ModelSpec in an ISOLATED throwaway runtime, apply optional sample mutations, and return the resulting merged state (base + derived) — WITHOUT registering it in…
eval_expression read-only expr*inputlibraryconstants
Evaluate a single JSONata expression against a sample input document and return the computed value, or the exact compile/eval error. Write the expr exactly as in a derivation/const…
evolve_spec can modify data id*evolution*
Apply an incremental SpecEvolution diff to a model, preserving live state. Returns the new version. Fails (isError) if the evolved spec is invalid, if expectedVersion no longer mat…
explain read-only id*path*limit
Explain why a field is what it is: returns the recent derivation/constraint trace records for a path from the in-memory ring buffer (inputs, expression, result). For a constraint u…
get_audit read-only id*tofromlimitpathPrefix
Query a model's durable, append-only audit trail (newest-first): one record per committed reactive cycle (mutations, derivedUpdated, traces, flaggedConstraints, dispatchedEffects,…
get_domain_guidance read-only topics*
Get vetted instructions for the hard modelling shapes this domain involves (progressive tax/fee charges, per-period schedules, classification, date math, group-by, …). Read the mod…
get_effective_schema read-only id*path*
Get the effective JSON Schema for a field: the static schema overlaid with LIVE meta-derived constraints (current min/max/required/…). Check this BEFORE writing a value to learn wh…
get_field read-only id*path*
Get the value of a single field by its JSON Path address (e.g. "$.order.total"). Evaluates a LAZY derivation on demand.
get_history read-only id*
List the ISO-8601 timestamps of a model's committed mutations (most recent 100).
get_library read-only id*
List the JSONata functions and values a model's library exports — what an expression in this model may call, with signature, arity and originating layer. Call it before writing an…
get_model_info read-only id*
Get summary info for a model: id, version, and derivation/meta/constraint/effect counts.
get_spec read-only id*
Get the full stored ModelSpec JSON for a model.
get_state read-only atid*depthpaths
Get a model's merged state (base fields plus all computed derived fields). On a large model this is the biggest context cost — narrow it: pass 'paths' to project only specific subt…
get_view read-only id*viewId
Evaluate a model's embedded view definition against current state and return the resolved component tree. Pass an optional 'viewId' for a named view; omit for the default view.
list_models read-only
List the ids of all currently registered Valem models (alphabetical).
mutate id*mutations*includeTraces
Apply field mutations to a model and run the reactive pipeline (derivations recompute, constraints enforce, effects dispatch). 'mutations' is a flat map keyed by canonical JSON Pat…
pair_browser
Pair this MCP session with a browser tab on the hosted Valem sandbox so both drive the same live model session. Mints a pairing on first call (or resumes an existing not-yet-approv…
patch_model id*patch*includeTraces
Apply an RFC 6902 JSON Patch document to a model and run the reactive pipeline. Unlike 'mutate' (a flat address→value map), a patch expresses array insert/remove/move and test/copy…
restore can modify data id*snapshot*
Restore a model's state from a snapshot previously returned by 'snapshot' (pass it back verbatim as 'snapshot'). Overwrites the model's current base state. The snapshot must be for…
snapshot read-only id*
Capture an immutable point-in-time snapshot of a model's state (base document + derived/meta caches). A natural safety step before a risky evolve_spec: keep the returned snapshot a…
test_spec read-only spec*tests
Run a spec's embedded test cases (or ad-hoc given->expect cases) through the real reactive pipeline in a throwaway runtime, returning pass/fail plus per-field failures (path, expec…
upload_blob data*mediaType
Store binary content (base64-encoded in 'data') in the content-addressed blob store and get back a BlobRef {$blobId, $mediaType, $bytes} to embed in a model's binary field. Storage…
validate_spec read-only spec*
Validate a ModelSpec WITHOUT creating it: returns a 'valid' flag plus structured findings (errors + warnings, each with a location and message). Use this to iterate on a draft — fi…
verify_audit read-only id*
Verify the tamper-evidence hash chain of a model's durable audit trail. Returns {valid, recordsChecked, firstBrokenSequence, detail}; a false 'valid' points at the first altered/re…