Bentrix Docs
HomePricingDashboard

MCP tools: forecast

A model's forecast on the chart: put (whole, in chunks, or several at one instant), read back by arrival, cleared; the journal's report, a comparison of models and the diff of two forecasts; an evaluation over history at machine speed, its state and the person's answer on its sheet; ensembles and presets. A forecast is the model's word — nothing here judges whether it is right.

Reached from a connected client as client.forecast in Python, client.forecast in JavaScript, client.forecast() in Rust — each tool below shows its call in every language.

chart_set_forecast#

Set how a chart draws forecasts

labplan: freesince 3.3.0idempotent

Sets how a chart draws a model's forecast: show, the ghost's opacity, uncertainty (fan, band, paths, off), the bands' opacity, the room on the right (forecast, shift_only, or N slots), how long a realized forecast stays (until_replaced, off, {horizons}, {bars}), a coarser interval spanned or by time, a finer one folded or by time, an element forecast on a time chart (auto, strip, by_expected_time, panel), a time forecast and another rule on a chart built by price (derived, strip, both), a profile (forecast_session, strip, off), true equivolume's widths (by_volume, median), the time past the newest bar (clock_time, session_time), the sampled paths drawn, and the models hidden on it (the legend's eye); models_per_market applies to every workbench. A field not named keeps its value. Answers the chart's forecast settings.

ArgumentTypeRequiredDefaultWhat it is
arrival_marksboolean——A tick on the time axis at each forecast's arrival.
band_opacitynumber——The bands' opacity, 0.05 to 0.6.
chartstringyes—The chart's uri.
coarserstring——A coarser interval: "spanned" or "by_time".
diffany——**The diff view**{"a": model, "b": model} shades the gap between their closes step by step; "off" takes it away.
element_on_timestring——An element forecast (renko, kagi, …) on a time chart: "auto" (by expected time where every step says when it closes, else the strip), "strip", "by_expected_time" or "panel".
equivolume_widthstring——A step's width on true equivolume: "by_volume" (its own volume, else the window's median) or "median".
finerstring——A finer interval: "folded" or "by_time".
hiddenarray of string——Models hidden on this chart, as the legend's eye hides them: the whole set.
journalstring——The journal, for every workbench: laboratory_and_paper (the default), also_real, or off.
keep_after_realizedany——Keep after realized: "until_replaced", "off", {"horizons": n} or {"bars": n}.
models_per_marketinteger——Models per market, for every workbench: 1 to 64.
on_profilestring——On a profile: "forecast_session" (letters over the rows one session after the last), "strip" or "off".
opacitynumber——The ghost's opacity, 0.2 to 1.
other_rulestring——An element forecast of another type or rule on a chart built by price: "derived", "strip" or "both".
past_neweststring——Past the newest bar: "clock_time", or "session_time" (only the hours the market prints bars in).
read_at_anchorany——Read a forecast at its anchor, for every workbench: {"laboratory": bool, "paper_and_real": bool}; both off by default. A look-ahead: marked wherever it reads; on a live bench never the newest close.
readoutboolean——A step's figures beside the pointer and in the data window.
roomany——Room on the right: "forecast" (as wide as the widest forecast), "shift_only", or a number of slots.
samples_drawninteger——Sampled paths drawn per step, 1 to 256.
showboolean——Draw forecasts on this chart.
time_on_elementsstring——A time forecast on a chart built by price: "derived" (through the chart's own rule), "strip" or "both".
trailinteger——The trail: the forecasts each model put before the one standing, drawn faint - 0 (off) to 64.
uncertaintystring——Fan, band, paths or off.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "chart_set_forecast",
    "arguments": {
      "chart": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def chart_set_forecast(self, chart: str, *, arrival_marks: Optional[bool] = None, band_opacity: Optional[float] = None, coarser: Optional[str] = None, diff: Optional[Any] = None, element_on_time: Optional[str] = None, equivolume_width: Optional[str] = None, finer: Optional[str] = None, hidden: Optional[List[str]] = None, journal: Optional[str] = None, keep_after_realized: Optional[Any] = None, models_per_market: Optional[int] = None, on_profile: Optional[str] = None, opacity: Optional[float] = None, other_rule: Optional[str] = None, past_newest: Optional[str] = None, read_at_anchor: Optional[Any] = None, readout: Optional[bool] = None, room: Optional[Any] = None, samples_drawn: Optional[int] = None, show: Optional[bool] = None, time_on_elements: Optional[str] = None, trail: Optional[int] = None, uncertainty: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.forecast
chartSetForecast(args)

C#

client.Forecast
public Task<JsonNode?> ChartSetForecast(string chart, bool? arrivalMarks = null, double? bandOpacity = null, string? coarser = null, object? diff = null, string? elementOnTime = null, string? equivolumeWidth = null, string? finer = null, IReadOnlyList<string>? hidden = null, string? journal = null, object? keepAfterRealized = null, long? modelsPerMarket = null, string? onProfile = null, double? opacity = null, string? otherRule = null, string? pastNewest = null, object? readAtAnchor = null, bool? readout = null, object? room = null, long? samplesDrawn = null, bool? show = null, string? timeOnElements = null, long? trail = null, string? uncertainty = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) ChartSetForecast(ctx context.Context, args ForecastChartSetForecastArgs) (any, error)

Java

client.forecast
public Object chartSetForecast(ChartSetForecastArgs args)

C++

client.forecast
Json chart_set_forecast(const ChartSetForecastArgs &args)

Julia

client.forecast
chart_set_forecast = (chart; arrival_marks = nothing, band_opacity = nothing, coarser = nothing, diff = nothing, element_on_time = nothing, equivolume_width = nothing, finer = nothing, hidden = nothing, journal = nothing, keep_after_realized = nothing, models_per_market = nothing, on_profile = nothing, opacity = nothing, other_rule = nothing, past_newest = nothing, read_at_anchor = nothing, readout = nothing, room = nothing, samples_drawn = nothing, show = nothing, time_on_elements = nothing, trail = nothing, uncertainty = nothing)

R

client$forecast
`chart_set_forecast` = function(chart, arrival_marks = NULL, band_opacity = NULL, coarser = NULL, diff = NULL, element_on_time = NULL, equivolume_width = NULL, finer = NULL, hidden = NULL, journal = NULL, keep_after_realized = NULL, models_per_market = NULL, on_profile = NULL, opacity = NULL, other_rule = NULL, past_newest = NULL, read_at_anchor = NULL, readout = NULL, room = NULL, samples_drawn = NULL, show = NULL, time_on_elements = NULL, trail = NULL, uncertainty = NULL)

Rust

client.forecast()
pub fn chart_set_forecast(&self, args: ForecastChartSetForecastArgs) -> Result<Value, Error>

forecast_clear#

Remove forecasts from a workbench

labplan: plussince 3.3.0destructive

Removes the forecasts of one model, one market, or all of them from the workbench, every arrival kept for them included, as the × on a forecast's legend row does. Answers how many (market, model) pairs were cleared.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench's uri.
modelstring——One model; omitted, every model.
symbolstring——One market; omitted, every market.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_clear",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def clear(self, bench: str, *, model: Optional[str] = None, symbol: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.forecast
clear(args)

C#

client.Forecast
public Task<JsonNode?> Clear(string bench, string? model = null, string? symbol = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) Clear(ctx context.Context, args ForecastClearArgs) (any, error)

Java

client.forecast
public Object clear(ClearArgs args)

C++

client.forecast
Json clear(const ClearArgs &args)

Julia

client.forecast
clear = (bench; model = nothing, symbol = nothing)

R

client$forecast
`clear` = function(bench, model = NULL, symbol = NULL)

Rust

client.forecast()
pub fn clear(&self, args: ForecastClearArgs) -> Result<Value, Error>

forecast_compare#

Set models' reports side by side

readplan: freesince 3.3.0reads only

Forecast_report for several models on one market, a row each, over the same journal and the same bars. Unordered (by name) unless metric_order names a measure, then best first. A comparison is a laboratory's instrument: nothing here is published or ranked anywhere else.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
lastinteger——
metric_orderstring——Order the rows by this measure, best first (mae_close, rmse_close, mape_close, pinball_loss, crps ascending; direction_hit_rate descending). Omitted, by the model's name: no ranking is drawn unless asked.
modelsarray of string——The models; omitted, every model the journal holds on the market.
symbolstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_compare",
    "arguments": {
      "bench": "…",
      "symbol": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def compare(self, bench: str, symbol: str, *, last: Optional[int] = None, metric_order: Optional[str] = None, models: Optional[List[str]] = None) -> Dict[str, Any]

JavaScript

client.forecast
compare(args)

C#

client.Forecast
public Task<JsonNode?> Compare(string bench, string symbol, long? last = null, string? metricOrder = null, IReadOnlyList<string>? models = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) Compare(ctx context.Context, args ForecastCompareArgs) (any, error)

Java

client.forecast
public Object compare(CompareArgs args)

C++

client.forecast
Json compare(const CompareArgs &args)

Julia

client.forecast
compare = (bench, symbol; last = nothing, metric_order = nothing, models = nothing)

R

client$forecast
`compare` = function(bench, symbol, last = NULL, metric_order = NULL, models = NULL)

Rust

client.forecast()
pub fn compare(&self, args: ForecastCompareArgs) -> Result<Value, Error>

forecast_diff#

Set two models' forecasts step by step

readplan: freesince 3.3.0reads only

The two models' forecasts a reader at the workbench's clock sees on one market, step by step where their steps open at the same instant: each one's close and the difference (b minus a), and where their outermost bands overlap.

ArgumentTypeRequiredDefaultWhat it is
astringyes—
bstringyes—
benchstringyes—
symbolstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_diff",
    "arguments": {
      "a": "…",
      "b": "…",
      "bench": "…",
      "symbol": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def diff(self, bench: str, symbol: str, a: str, b: str) -> Dict[str, Any]

JavaScript

client.forecast
diff(args)

C#

client.Forecast
public Task<JsonNode?> Diff(string bench, string symbol, string a, string b, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) Diff(ctx context.Context, args ForecastDiffArgs) (any, error)

Java

client.forecast
public Object diff(DiffArgs args)

C++

client.forecast
Json diff(const DiffArgs &args)

Julia

client.forecast
diff = (bench, symbol, a, b)

R

client$forecast
`diff` = function(bench, symbol, a, b)

Rust

client.forecast()
pub fn diff(&self, args: ForecastDiffArgs) -> Result<Value, Error>

forecast_ensemble_define#

Declare an ensemble of forecasts

labplan: freesince 3.4.0idempotent

Declares an ensemble on a workbench's market: its label, its members (models' labels), the rule its closes are combined by (mean, median, weighted with one weight a member) and the NAMED rule its bands are combined by - quantiles_averaged (each level's lo and hi averaged; the band claims no coverage of its own), members_pooled (the mixture of the members' samples, quantiles or band edges, its quantiles at each level; partly pooled where a member gave only a band), or none. Bentrix computes only what is declared: whenever a member's newest forecast arrives and every member stands at one anchor, the ensemble's forecast is put, authored ensemble:<id>, so its arrival is the latest of its members'; a member cleared takes it off with a sentence. Declaring an id again replaces it. Answers the ensemble.

ArgumentTypeRequiredDefaultWhat it is
bands"quantiles_averaged" | "members_pooled" | "none"——Quantiles_averaged (each level's edges averaged; the band claims no p), members_pooled (the mixture's quantiles) or none. Omitted: quantiles_averaged.
benchstringyes—
idstringyes—The ensemble's label, as a model's: [a-z0-9_]{1,32}, none of its members.
membersarray of stringyes—The members' model labels, at least two.
rule"mean" | "median" or stringyes—Mean, median or weighted.
symbolstringyes—
weightsarray of number——For weighted: one weight a member, in the members' order.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_ensemble_define",
    "arguments": {
      "bench": "…",
      "id": "…",
      "members": [],
      "rule": "mean",
      "symbol": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def ensemble_define(self, bench: str, symbol: str, id: str, members: List[str], rule: Literal["mean", "median", "weighted"], *, bands: Optional[Literal["quantiles_averaged", "members_pooled", "none"]] = None, weights: Optional[List[float]] = None) -> Dict[str, Any]

JavaScript

client.forecast
ensembleDefine(args)

C#

client.Forecast
public Task<JsonNode?> EnsembleDefine(string bench, string symbol, string id, IReadOnlyList<string> members, string rule, string? bands = null, IReadOnlyList<double>? weights = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EnsembleDefine(ctx context.Context, args ForecastEnsembleDefineArgs) (any, error)

Java

client.forecast
public Object ensembleDefine(EnsembleDefineArgs args)

C++

client.forecast
Json ensemble_define(const EnsembleDefineArgs &args)

Julia

client.forecast
ensemble_define = (bench, symbol, id, members, rule; bands = nothing, weights = nothing)

R

client$forecast
`ensemble_define` = function(bench, symbol, id, members, rule, bands = NULL, weights = NULL)

Rust

client.forecast()
pub fn ensemble_define(&self, args: ForecastEnsembleDefineArgs) -> Result<Value, Error>

forecast_ensemble_list#

List a workbench's ensembles

readplan: freesince 3.4.0reads only

Answers the ensembles declared on a workbench: each one's label, market, members, rules, the latest member arrival its forecast was made from, and what it last said where none stands.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_ensemble_list",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def ensemble_list(self, bench: str) -> Dict[str, Any]

JavaScript

client.forecast
ensembleList(args)

C#

client.Forecast
public Task<JsonNode?> EnsembleList(string bench, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EnsembleList(ctx context.Context, args ForecastEnsembleListArgs) (any, error)

Java

client.forecast
public Object ensembleList(EnsembleListArgs args)

C++

client.forecast
Json ensemble_list(const EnsembleListArgs &args)

Julia

client.forecast
ensemble_list = (bench)

R

client$forecast
`ensemble_list` = function(bench)

Rust

client.forecast()
pub fn ensemble_list(&self, args: ForecastEnsembleListArgs) -> Result<Value, Error>

forecast_ensemble_remove#

Remove an ensemble

labplan: freesince 3.4.0destructive

Removes an ensemble from a workbench's market, and its forecast with it. Answers whether one was there.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
idstringyes—
symbolstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_ensemble_remove",
    "arguments": {
      "bench": "…",
      "id": "…",
      "symbol": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def ensemble_remove(self, bench: str, symbol: str, id: str) -> Dict[str, Any]

JavaScript

client.forecast
ensembleRemove(args)

C#

client.Forecast
public Task<JsonNode?> EnsembleRemove(string bench, string symbol, string id, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EnsembleRemove(ctx context.Context, args ForecastEnsembleRemoveArgs) (any, error)

Java

client.forecast
public Object ensembleRemove(EnsembleRemoveArgs args)

C++

client.forecast
Json ensemble_remove(const EnsembleRemoveArgs &args)

Julia

client.forecast
ensemble_remove = (bench, symbol, id)

R

client$forecast
`ensemble_remove` = function(bench, symbol, id)

Rust

client.forecast()
pub fn ensemble_remove(&self, args: ForecastEnsembleRemoveArgs) -> Result<Value, Error>

forecast_eval_batch#

Run a batch of evaluation runs with ONNX models

labplan: plussince 3.4.0

Runs one evaluation run per cell over the workbench's own history, each with an ONNX model from the models folder asked INSIDE the loop by Bentrix's built-in engine: at each close the window its manifest describes is cut there, the model run, its output put as that close's forecast, stamped close + latency, and scored as forecast_eval_close scores. The workbench's clock does not move. Answers each cell's report, or why it did not run, in the cells' order.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
cellsarray of objectyes—One evaluation run each.
cells[].filestringyes—An ONNX model's folder in the models folder: the model the run asks at each close.
cells[].from_msintegeryes—
cells[].latencyany——As forecast_eval_make's: "none", "measured" or a number of ms.
cells[].strideinteger——
cells[].symbolstring——The market it forecasts, one of the workbench's; where its manifest names markets, the first of them.
cells[].to_msinteger——

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_eval_batch",
    "arguments": {
      "bench": "…",
      "cells": []
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def eval_batch(self, bench: str, cells: List[EvalCell]) -> Dict[str, Any]

JavaScript

client.forecast
evalBatch(args)

C#

client.Forecast
public Task<JsonNode?> EvalBatch(string bench, object cells, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EvalBatch(ctx context.Context, args ForecastEvalBatchArgs) (any, error)

Java

client.forecast
public Object evalBatch(EvalBatchArgs args)

C++

client.forecast
Json eval_batch(const EvalBatchArgs &args)

Julia

client.forecast
eval_batch = (bench, cells)

R

client$forecast
`eval_batch` = function(bench, cells)

Rust

client.forecast()
pub fn eval_batch(&self, args: ForecastEvalBatchArgs) -> Result<Value, Error>

forecast_eval_close#

End an evaluation run and report it

labplan: plussince 3.3.0

Ends an evaluation run: its report (forecast_report's measures over the run's forecasts against the workbench's history, each step only if it had not closed at its stamped arrival, the latency said) and its journal written as one JSON-lines file in the export folder under this agent's name. The bench's own journal is not touched.

ArgumentTypeRequiredDefaultWhat it is
evalintegeryes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_eval_close",
    "arguments": {
      "eval": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def eval_close(self, eval: int) -> Dict[str, Any]

JavaScript

client.forecast
evalClose(args)

C#

client.Forecast
public Task<JsonNode?> EvalClose(long eval, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EvalClose(ctx context.Context, args ForecastEvalCloseArgs) (any, error)

Java

client.forecast
public Object evalClose(EvalCloseArgs args)

C++

client.forecast
Json eval_close(const EvalCloseArgs &args)

Julia

client.forecast
eval_close = (eval)

R

client$forecast
`eval_close` = function(eval)

Rust

client.forecast()
pub fn eval_close(&self, args: ForecastEvalCloseArgs) -> Result<Value, Error>

forecast_eval_make#

Start an evaluation run over history

labplan: plussince 3.3.0

Starts an evaluation run over the workbench's own history between from_ms and to_ms (its clock at most; the clock does not move): the closes of forecast_tf on the first market, one in stride. Forecast_eval_next hands the window cut at each close and scores the forecast handed back for the close before; forecast_eval_close answers the report. Each forecast's arrival is stamped close + latency (none, measured - this model's mean live latency on the bench's journal, 0 and said when it has none - or N ms), and a step it could already see is late and unscored, exactly as live. Over a span the workbench's laboratory does not hold nothing is made or fetched: the answer is an ask - which laboratory, the span, the days and markets downloaded, what MetaTrader will be asked - and a watch uri, and the person answers on one sheet in Bentrix's window (Make it and run, or No); forecast_eval_state and the event bentrix://forecasts/eval say what came of it. Answers the eval's id, the closes and what it runs on.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench whose history the run walks; its clock does not move.
forecast_tfstringyes—The interval whose closes the run walks, and the forecast's.
framesarray of stringyes—The frames of each window: intervals' labels.
from_msintegeryes—
latencyany——The latency each forecast is stamped with: "none", "measured" (this model's mean live latency on the bench's journal, the default), or a number of ms.
limitinteger——Closed bars per frame in each window (200 when omitted).
modelstringyes—The model label the run's forecasts carry.
retrainstring——When a retrain is due: "session" (each new day), "week", or a count of closes.
run_modelstring——**A model of the models folder Bentrix runs at each close itself**the run is driven by Bentrix to its end, the model handed each window and its answer scored, its label the model's own; omitted, the caller drives the run with forecast_eval_next.
strideinteger——One close in N.
symbolsarray of stringyes—The markets of each window, the first the forecast's.
to_msinteger——At most the workbench's clock; omitted, the clock.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_eval_make",
    "arguments": {
      "bench": "…",
      "forecast_tf": "…",
      "frames": [],
      "from_ms": 1,
      "model": "…",
      "symbols": []
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def eval_make(self, bench: str, symbols: List[str], frames: List[str], forecast_tf: str, from_ms: int, model: str, *, latency: Optional[Any] = None, limit: Optional[int] = None, retrain: Optional[str] = None, run_model: Optional[str] = None, stride: Optional[int] = None, to_ms: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.forecast
evalMake(args)

C#

client.Forecast
public Task<JsonNode?> EvalMake(string bench, IReadOnlyList<string> symbols, IReadOnlyList<string> frames, string forecastTf, long fromMs, string model, object? latency = null, long? limit = null, string? retrain = null, string? runModel = null, long? stride = null, long? toMs = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EvalMake(ctx context.Context, args ForecastEvalMakeArgs) (any, error)

Java

client.forecast
public Object evalMake(EvalMakeArgs args)

C++

client.forecast
Json eval_make(const EvalMakeArgs &args)

Julia

client.forecast
eval_make = (bench, symbols, frames, forecast_tf, from_ms, model; latency = nothing, limit = nothing, retrain = nothing, run_model = nothing, stride = nothing, to_ms = nothing)

R

client$forecast
`eval_make` = function(bench, symbols, frames, forecast_tf, from_ms, model, latency = NULL, limit = NULL, retrain = NULL, run_model = NULL, stride = NULL, to_ms = NULL)

Rust

client.forecast()
pub fn eval_make(&self, args: ForecastEvalMakeArgs) -> Result<Value, Error>

forecast_eval_next#

The next window of an evaluation run

labplan: plussince 3.3.0

Scores the forecast handed for the last window - checked as forecast_put checks it, its arrival stamped at that window's close plus the run's latency - and hands the window cut at the next close: close_ms, the window (bars_window's answer at that instant, nothing later), done once the closes are walked, scored (the forecasts recorded so far), and retrain_due where the run's retrain rule falls.

ArgumentTypeRequiredDefaultWhat it is
evalintegeryes—
forecastany——The forecast for the window handed last, as forecast_spec (its model and market the run's; its anchor the last closed bar of that window's close). Omitted for the first window, or to pass a close.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_eval_next",
    "arguments": {
      "eval": 1
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def eval_next(self, eval: int, *, forecast: Optional[Any] = None) -> Dict[str, Any]

JavaScript

client.forecast
evalNext(args)

C#

client.Forecast
public Task<JsonNode?> EvalNext(long eval, object? forecast = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EvalNext(ctx context.Context, args ForecastEvalNextArgs) (any, error)

Java

client.forecast
public Object evalNext(EvalNextArgs args)

C++

client.forecast
Json eval_next(const EvalNextArgs &args)

Julia

client.forecast
eval_next = (eval; forecast = nothing)

R

client$forecast
`eval_next` = function(eval, forecast = NULL)

Rust

client.forecast()
pub fn eval_next(&self, args: ForecastEvalNextArgs) -> Result<Value, Error>

forecast_eval_state#

Where an evaluation run or its ask stands

readplan: freesince 3.3.0reads only

A run's closes walked and left, its forecasts recorded, its latency rule and retrain rule; or where an ask forecast_eval_make answered stands: asked (the sheet stands in Bentrix's window), confirmed (Make it and run pressed), made_laboratory (the workbench over the span is made and its days are downloading), started (with the eval to drive), declined (by the person - never a failure), or failed (with why). The person's press on the sheet is the one answer; no tool answers it. The event bentrix://forecasts/eval carries each move of an ask.

ArgumentTypeRequiredDefaultWhat it is
askstring——Or an ask it answered (bentrix://ask/N), over days the workbench's laboratory did not hold.
evalinteger——A run forecast_eval_make started.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_eval_state",
    "arguments": {},
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def eval_state(self, *, ask: Optional[str] = None, eval: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.forecast
evalState(args)

C#

client.Forecast
public Task<JsonNode?> EvalState(string? ask = null, long? eval = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) EvalState(ctx context.Context, args ForecastEvalStateArgs) (any, error)

Java

client.forecast
public Object evalState(EvalStateArgs args)

C++

client.forecast
Json eval_state(const EvalStateArgs &args)

Julia

client.forecast
eval_state = (; ask = nothing, eval = nothing)

R

client$forecast
`eval_state` = function(ask = NULL, eval = NULL)

Rust

client.forecast()
pub fn eval_state(&self, args: ForecastEvalStateArgs) -> Result<Value, Error>

forecast_get#

Read the forecasts on a workbench

readplan: freesince 3.3.0reads only

Answers the forecasts a reader at at_ms (the workbench's clock when omitted) sees on the workbench, by arrival - never one that arrived after that instant - each with its model, market, epoch, form, anchor, put_ms, steps' count, state (current, partly realized, realized), how many steps have closed, who put it and its colours; steps true hands the steps. Arrivals lists every arrival the workbench keeps per model.

ArgumentTypeRequiredDefaultWhat it is
at_msinteger——The instant to read at, UTC ms: what a reader at that instant saw. Omitted, the workbench's clock.
benchstringyes—The workbench's uri.
modelstring——One model; omitted, every model.
stepsboolean—falseTrue hands each forecast's steps too.
symbolstring——One market; omitted, every market.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_get",
    "arguments": {
      "bench": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def get(self, bench: str, *, at_ms: Optional[int] = None, model: Optional[str] = None, steps: Optional[bool] = None, symbol: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.forecast
get(args)

C#

client.Forecast
public Task<JsonNode?> Get(string bench, long? atMs = null, string? model = null, bool? steps = null, string? symbol = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) Get(ctx context.Context, args ForecastGetArgs) (any, error)

Java

client.forecast
public Object get(GetArgs args)

C++

client.forecast
Json get(const GetArgs &args)

Julia

client.forecast
get = (bench; at_ms = nothing, model = nothing, steps = nothing, symbol = nothing)

R

client$forecast
`get` = function(bench, at_ms = NULL, model = NULL, steps = NULL, symbol = NULL)

Rust

client.forecast()
pub fn get(&self, args: ForecastGetArgs) -> Result<Value, Error>

forecast_preset_apply#

Apply a forecast preset

labplan: freesince 3.4.0idempotent

Applies a preset's look to a chart, or with all true to every chart of that chart's workbench, as the card's Preset row does; each chart keeps its Show and the models its legend hid. Answers the charts it was applied to.

ArgumentTypeRequiredDefaultWhat it is
allboolean—false
chartstringyes—The chart it is applied to; omitted with all true, every chart of the workbench the chart is on.
namestringyes—The preset: bentrix, quiet, or a name it was saved under.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_preset_apply",
    "arguments": {
      "chart": "…",
      "name": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def preset_apply(self, name: str, chart: str, *, all: Optional[bool] = None) -> Dict[str, Any]

JavaScript

client.forecast
presetApply(args)

C#

client.Forecast
public Task<JsonNode?> PresetApply(string name, string chart, bool? all = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) PresetApply(ctx context.Context, args ForecastPresetApplyArgs) (any, error)

Java

client.forecast
public Object presetApply(PresetApplyArgs args)

C++

client.forecast
Json preset_apply(const PresetApplyArgs &args)

Julia

client.forecast
preset_apply = (name, chart; all = nothing)

R

client$forecast
`preset_apply` = function(name, chart, all = NULL)

Rust

client.forecast()
pub fn preset_apply(&self, args: ForecastPresetApplyArgs) -> Result<Value, Error>

forecast_preset_delete#

Delete a saved forecast preset

labplan: freesince 3.4.0destructive

Deletes a preset the person saved; Bentrix's own (bentrix, quiet) cannot be. Answers every preset's name left.

ArgumentTypeRequiredDefaultWhat it is
namestringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_preset_delete",
    "arguments": {
      "name": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def preset_delete(self, name: str) -> Dict[str, Any]

JavaScript

client.forecast
presetDelete(args)

C#

client.Forecast
public Task<JsonNode?> PresetDelete(string name, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) PresetDelete(ctx context.Context, args ForecastPresetDeleteArgs) (any, error)

Java

client.forecast
public Object presetDelete(PresetDeleteArgs args)

C++

client.forecast
Json preset_delete(const PresetDeleteArgs &args)

Julia

client.forecast
preset_delete = (name)

R

client$forecast
`preset_delete` = function(name)

Rust

client.forecast()
pub fn preset_delete(&self, args: ForecastPresetDeleteArgs) -> Result<Value, Error>

forecast_preset_save#

Save a chart's forecast look as a preset

labplan: freesince 3.4.0idempotent

Saves a chart's forecast look - every row of its Forecast tab but Show and the models its legend hid - under a name, kept on this machine; the card's Preset row offers it beside Bentrix's own presets (bentrix, quiet). Saving a name again replaces it. Answers every preset's name.

ArgumentTypeRequiredDefaultWhat it is
chartstringyes—The chart whose look is saved.
namestringyes—The preset's name, [a-z0-9_]{1,32}, not a built-in's (bentrix, quiet).

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_preset_save",
    "arguments": {
      "chart": "…",
      "name": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def preset_save(self, chart: str, name: str) -> Dict[str, Any]

JavaScript

client.forecast
presetSave(args)

C#

client.Forecast
public Task<JsonNode?> PresetSave(string chart, string name, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) PresetSave(ctx context.Context, args ForecastPresetSaveArgs) (any, error)

Java

client.forecast
public Object presetSave(PresetSaveArgs args)

C++

client.forecast
Json preset_save(const PresetSaveArgs &args)

Julia

client.forecast
preset_save = (chart, name)

R

client$forecast
`preset_save` = function(chart, name)

Rust

client.forecast()
pub fn preset_save(&self, args: ForecastPresetSaveArgs) -> Result<Value, Error>

forecast_put#

Put a model's forecast on a workbench

labplan: plussince 3.3.0idempotent

Hands over a forecast_spec: drawn on every chart of its market on the workbench from the instant it arrives, which Bentrix stamps as put_ms on the workbench's own clock (a laboratory's replay instant, a live bench's market clock) - no reader sees it before. Refused by name where it cannot be true (a high under its body, a band upside down, falling quantiles, an anchor that is not a closed bar of the form's interval, an element form naming an interval) with what is offered instead; a lower epoch than the model's standing forecast is refused; past Models per market the answer names the setting. Answers the arrival, the state, where the steps end, the replaced epoch, and each chart of the market with where the forecast stands on it.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench's uri.
forecastanyyes—The forecast, as forecast_spec describes it.
steps_totalinteger——**A long forecast in chunks**the steps the whole forecast will hold. Its steps here are the first chunk; the rest come by forecast_put_chunk, and it arrives - for every reader - when the last one lands.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_put",
    "arguments": {
      "bench": "…",
      "forecast": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def put(self, bench: str, forecast: Any, *, steps_total: Optional[int] = None) -> Dict[str, Any]

JavaScript

client.forecast
put(args)

C#

client.Forecast
public Task<JsonNode?> Put(string bench, object forecast, long? stepsTotal = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) Put(ctx context.Context, args ForecastPutArgs) (any, error)

Java

client.forecast
public Object put(PutArgs args)

C++

client.forecast
Json put(const PutArgs &args)

Julia

client.forecast
put = (bench, forecast; steps_total = nothing)

R

client$forecast
`put` = function(bench, forecast, steps_total = NULL)

Rust

client.forecast()
pub fn put(&self, args: ForecastPutArgs) -> Result<Value, Error>

forecast_put_chunk#

Send the next chunk of a long forecast

labplan: plussince 3.3.0

Appends steps to a forecast opened with forecast_put and steps_total, from_step being the count already sent. Until the last chunk lands the forecast exists for no reader (the legend says receiving N of M); at the last one the whole forecast is checked as forecast_put checks it and arrives then, stamped put_ms. A chunk out of order, of another epoch or past the total is refused by name. Answers have and of, and at the last chunk forecast_put's answer.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—The workbench's uri.
epochintegeryes—The epoch the forecast was opened with.
from_stepintegeryes—The index (0-based) of this chunk's first step: the count of steps already sent.
modelstringyes—
stepsarray of anyyes—The steps, as forecast_spec's steps.
symbolstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_put_chunk",
    "arguments": {
      "bench": "…",
      "epoch": 1,
      "from_step": 1,
      "model": "…",
      "steps": [],
      "symbol": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def put_chunk(self, bench: str, symbol: str, model: str, epoch: int, from_step: int, steps: List[Any]) -> Dict[str, Any]

JavaScript

client.forecast
putChunk(args)

C#

client.Forecast
public Task<JsonNode?> PutChunk(string bench, string symbol, string model, long epoch, long fromStep, object steps, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) PutChunk(ctx context.Context, args ForecastPutChunkArgs) (any, error)

Java

client.forecast
public Object putChunk(PutChunkArgs args)

C++

client.forecast
Json put_chunk(const PutChunkArgs &args)

Julia

client.forecast
put_chunk = (bench, symbol, model, epoch, from_step, steps)

R

client$forecast
`put_chunk` = function(bench, symbol, model, epoch, from_step, steps)

Rust

client.forecast()
pub fn put_chunk(&self, args: ForecastPutChunkArgs) -> Result<Value, Error>

forecast_put_many#

Put several forecasts at once

labplan: plussince 3.3.0

Hands over up to 256 forecast_specs to one workbench in one call, every one arriving at the same instant of its clock: several markets and several models. Each refused one is named by its index with why; all_or_nothing lands none when one is refused. Answers put (each landed forecast as forecast_put answers it) and refused [{index, why}].

ArgumentTypeRequiredDefaultWhat it is
all_or_nothingboolean—falseTrue lands none when one is refused; false (the default) lands every one that can be, and names the rest.
benchstringyes—The workbench's uri.
forecastsarray of anyyes—The forecasts, each a forecast_spec: several markets, several models, at most 256.

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_put_many",
    "arguments": {
      "bench": "…",
      "forecasts": []
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def put_many(self, bench: str, forecasts: List[Any], *, all_or_nothing: Optional[bool] = None) -> Dict[str, Any]

JavaScript

client.forecast
putMany(args)

C#

client.Forecast
public Task<JsonNode?> PutMany(string bench, object forecasts, bool? allOrNothing = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) PutMany(ctx context.Context, args ForecastPutManyArgs) (any, error)

Java

client.forecast
public Object putMany(PutManyArgs args)

C++

client.forecast
Json put_many(const PutManyArgs &args)

Julia

client.forecast
put_many = (bench, forecasts; all_or_nothing = nothing)

R

client$forecast
`put_many` = function(bench, forecasts, all_or_nothing = NULL)

Rust

client.forecast()
pub fn put_many(&self, args: ForecastPutManyArgs) -> Result<Value, Error>

forecast_report#

Report how a model's forecasts did

readplan: freesince 3.3.0reads only

Scores a model's journalled forecasts on one market against the bars the workbench's history holds, up to its clock - each step only if it had not closed when its forecast arrived: per step and overall, the count, the close's mean absolute error, its percentage, the root mean square error, the mean signed error, the direction hit rate (the close's move from the anchor's own close), each band's coverage against its nominal p, the quantiles' pinball loss, the samples' CRPS, and the mean latency (put_ms after the anchor's close). Steps still to close are pending; steps a late arrival could already see are late and unscored.

ArgumentTypeRequiredDefaultWhat it is
benchstringyes—
lastinteger——Only the newest N forecasts.
modelstringyes—
since_msinteger——Only forecasts that arrived at or after this instant, UTC ms.
sourcestring——Live or eval; omitted, both.
symbolstringyes—

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "forecast_report",
    "arguments": {
      "bench": "…",
      "model": "…",
      "symbol": "…"
    },
    "_meta": {
      "io.modelcontextprotocol/protocolVersion": "2026-07-28",
      "io.modelcontextprotocol/clientCapabilities": {}
    }
  }
}

Python

client.forecast
def report(self, bench: str, symbol: str, model: str, *, last: Optional[int] = None, since_ms: Optional[int] = None, source: Optional[str] = None) -> Dict[str, Any]

JavaScript

client.forecast
report(args)

C#

client.Forecast
public Task<JsonNode?> Report(string bench, string symbol, string model, long? last = null, long? sinceMs = null, string? source = null, CancellationToken ct = default)

Go

client.Forecast
func (a *ForecastAPI) Report(ctx context.Context, args ForecastReportArgs) (any, error)

Java

client.forecast
public Object report(ReportArgs args)

C++

client.forecast
Json report(const ReportArgs &args)

Julia

client.forecast
report = (bench, symbol, model; last = nothing, since_ms = nothing, source = nothing)

R

client$forecast
`report` = function(bench, symbol, model, last = NULL, since_ms = NULL, source = NULL)

Rust

client.forecast()
pub fn report(&self, args: ForecastReportArgs) -> Result<Value, Error>

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed