Nimbus BCI

v0.14.21
io.github.nimbusbci/nimbus-mcp Checked 5 hours ago Published 28 days ago

BCI/EEG toolkit: public MOABB/BNCI datasets, pipeline build/validate, hosted training, BIDS export.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

account.whoami Who Am I

Who you are authenticated as: account email, plan (isPro / pioneer), this month's free-run quota, and — with a hosted token — the token name and days until it expires. Call this first when setup guidance appears or to check which credential a session uses. In anonymous Local Free mode there is no account: the response says so (mode/tier) instead of demanding a login.

catalog.nodes List Pipeline Nodes

List Nimbus pipeline node types (data, preprocessing, features, models...). Use catalog.node_schema(node_type) for one node's full config schema and ports.

ParameterTypeDescription
categoryOptional filter by category id — e.g. "data", "preprocessing", "feature", "model" (singular ids; plurals such as "models"/"features" are accepted). An unknown category is an error that lists the val…

catalog.node_schema Node Config Schema

Full config JSON schema + input/output ports for one node type.

ParameterTypeDescription
node_type *stringNode id from catalog.nodes (e.g. "csp", "nimbus_lda").

catalog.templates List Pipeline Templates

List built-in starter pipelines (MI/P300/SSVEP...). catalog.template(id) returns the graph. Each row carries ``datasetId`` (catalog id, e.g. "BNCI2014_001" — the id catalog.leaderboard and catalog.datasets use) and ``paradigm`` when the template loads a public dataset.

ParameterTypeDescription
datasetOnly templates on this dataset id (e.g. "BNCI2014_001"); case-insensitive.
paradigmOnly templates with this paradigm (e.g. "motor_imagery", "p300", "ssvep").

catalog.template Get Pipeline Template

Full template incl. the 'train' execGraph needed by execution.run/pipeline.validate.

ParameterTypeDescription
template_id *stringTemplate id from catalog.templates (e.g. "mi_csp_lda").

catalog.datasets List Datasets

Curated public EEG datasets (MOABB packs) available to pipelines.

ParameterTypeDescription
only_on_diskbooleanOnly return datasets whose data packs are present on this backend (True by default; False also lists known-but-missing sets).

catalog.leaderboard Leaderboard

Public benchmark leaderboard: pipeline rankings per dataset. Two tracks: the top-level ``within_session`` block (curated suite pipelines) and ``crossSubject`` (leave-one-subject-out — curated pipelines plus BYO ``python_model`` submissions; BYO rows carry ``kind: "byo"`` and an ``owner`` name). Within each dataset, ``rows`` sort desc by ``meanAccuracyPct`` (95% CI in ``ciLoPct``/``ciHiPct``). ``packFingerprint`` identifies the exact dataset pack behind the scores; ``updated`` marks each dataset's most recent run. The ``pretrainedFewTrial`` efficiency track means: accuracy at a protocol-fixe…

ParameterTypeDescription
dataset_idOptional dataset id. When set, every track is filtered to that dataset. Omit it for the full board.

leaderboard.submit Submit to Leaderboard

Submit a BYO python_model to a leaderboard track for server-side scoring. Nimbus scores it server-side under the track's fixed protocol — you submit code, never results. Poll ``leaderboard.status`` with the returned ``submissionId``; scoring takes minutes (classical) to tens of minutes (deep). Requirements must be plain PyPI names/specs (max 20, no URLs). Identical code resubmission is idempotent per track (``deduplicated: true``). Verification contract (tier model X10): ``verification="verified"`` (default) is the server-side-scored submission above — on the hosted backend it is Pro-onl…

ParameterTypeDescription
dataset_id *stringA dataset id from catalog.leaderboard ``submittableDatasets`` (e.g. "BNCI2014_001"). A dataset can appear under crossSubject and still be closed for submission (BNCI2014_008 is scored there and is not…
name *stringDisplay name on the board (<=100 chars).
backbone_kindCheckpoint family for the BYO backbone lane — one of the zoo's supported kinds (e.g. "cbramod", "labram").
backbone_licenseLicense declared for the backbone checkpoint.
backbone_repoHF 'org/name' repo id for the BYO backbone lane.
backbone_revisionFull 40-char commit SHA pinning the backbone.
class_nameContract class to instantiate; omit to auto-detect.
codePython source defining a class with fit(X, y, info) and predict(X) (<=256KB; validate first with python.validate). Required unless backbone_repo is set.
requirementsOptional PyPI requirements (e.g. ["sklearn>=1.4"]).
trackstring"cross_subject" (default — full-data leave-one-subject-out, seed 42) or "pretrained_few_trial" (efficiency track: LOSO with a protocol-fixed 100-trials-per-subject cap; code that imports torch must…
verificationstring"verified" (default; server-side scored, Pro on the hosted backend) or "unverified_local" (Account-Free locally-computed lane; see the tool description for its current backend status).

leaderboard.status Leaderboard Submission Status

Fetch one of your leaderboard submissions (owner-only). Returns status (queued | scoring | done | failed), metrics when done (meanAccuracyPct + CI, same shape as leaderboard rows), or the error that failed it.

ParameterTypeDescription
submission_id *stringThe submissionId returned by leaderboard.submit.

leaderboard.mine My Leaderboard Submissions

List your leaderboard submissions (newest first), all datasets.

pipeline.validate Validate Pipeline

Validate a pipeline graph before running. ExecGraphSnapshot: {nodes: [{id, type, config}], connections: [{from, to}]}. Build it from catalog.template(id).train or from scratch using catalog.nodes().

ParameterTypeDescription
train_graph *objectThe graph to validate ({nodes, connections}).

pipeline.validate_node Validate Node Config

Validate one node's config (schema + semantic checks). Catches the same value errors as pipeline.validate for a single node (inverted bandpass, CSP components vs channel count when dataset is set).

ParameterTypeDescription
config *objectThe node's config object to check.
node_type *stringNode type id from catalog.nodes (e.g. "csp", "bandpass_filter").
datasetOptional MOABB pack id (e.g. "BNCI2014_001") so CSP/Nyquist checks can use channel count and sampling rate. Omitted → those context checks are skipped; inverted-band checks still run.

execution.run Run Pipeline

Start a pipeline run (NON-BLOCKING). Returns executionId — poll with execution.get() until status is completed/failed, then execution.results(). If an identical graph is already running for you, the run still starts but the response carries a ``warning`` + ``duplicateOf`` ids (cancel one with execution.cancel to avoid paying twice). The server runs a limited number of executions at once (3 by default); when all slots are busy the call fails immediately with 429 nimbus.execution.queue_full and a retryAfter (seconds) — wait, then retry.

ParameterTypeDescription
train_graph *objectPipeline graph {nodes: [{id, type, config}], connections: [{from, to}]} as built by catalog.template/pipeline.validate.
descriptionOptional longer description of the experiment.
layoutOptional canvas positions {nodes: {id: {x, y}}}; a deterministic grid is synthesized when omitted.
nameDisplay name for the run (shown in the Runs list).
subjectOptional dataset subject code (e.g. "S01") recorded with the run.

execution.cancel Cancel Run

Cancel a running execution.

ParameterTypeDescription
execution_id *stringThe run to terminate (from execution.run/execution.list).

execution.delete Delete Run

Permanently delete one of your finished runs (completed/failed/cancelled) with its results. Running runs must be cancelled first (409 nimbus.execution.delete_not_terminal). Owner only.

ParameterTypeDescription
execution_id *stringThe run to delete (from execution.run/execution.list).
confirmbooleanMUST be true to delete — the explicit user go-ahead.

execution.get Get Run

Execution status summary (status: running/completed/failed/cancelled). Summary fields: ``dataset`` is the human-readable display label (e.g. "BCIIV2a"); ``datasetId`` is the catalog id (e.g. "BNCI2014_001") accepted by other tools (data.inspect_dataset, public_data.dataset). ``title`` is the run name shown in Studio.

ParameterTypeDescription
execution_id *stringThe run to check (from execution.run/execution.list).

execution.list List Runs

Recent executions. Optional status filter (running/completed/failed/cancelled). Per-run fields: ``dataset`` is the human-readable display label (e.g. "BCIIV2a"); ``datasetId`` is the catalog id (e.g. "BNCI2014_001") accepted by other tools (data.inspect_dataset, public_data.dataset). ``title`` is the run name shown in Studio.

ParameterTypeDescription
limitintegerMaximum number of runs to return (default 20).
statusFilter by run status: running/completed/failed/cancelled.

execution.results Run Results

Metrics for a completed run. Trimmed by default (accuracy, kappa, ITR, confusion matrix, per-class); full=True returns the complete result object.

ParameterTypeDescription
execution_id *stringThe completed run to fetch metrics for.
fullbooleanReturn the backend's complete result object (all fields).

calibration.start Start Calibration

Start a guided subject calibration session (NON-BLOCKING; confirm-gated — the device goes on a human's head). The Nimbus Studio app shows the cues on its calibration dashboard automatically; poll calibration.status. Requires a Pro plan (hosted token or Pro session): calibration nodes and custom-data training are gated by the freemium node policy; local X-MCP-Key principals pass only when the desktop app flags the signed-in Pro session (MCP_LOCAL_IS_PRO).

ParameterTypeDescription
classesOverride class list [{id,label,cue}] (MI default: left/right hand).
confirmbooleanMUST be true — explicit user go-ahead for a session on their head.
connection_typeDevice selector when several exist (e.g. serial vs wifi).
device_typeDevice id from device.list (omit → template default synthetic).
ip_addressDevice IP for network/wifi devices.
ip_portPort for network devices.
mac_addressBluetooth MAC (BT devices).
nameDisplay name recorded on the execution.
paradigmstringmi | p300 | sart | target_hit.
portSerial/COM port for wired devices.
serial_numberDevice serial (some BLE stacks).
source_idLSL source id.
stream_nameLSL stream name (LSL devices).
trials_per_classOverride the template's trial count (minimum 5).

calibration.status Calibration Status

Live snapshot of a calibration session (phase, current trial, progress, paused). Once complete, carries the recorded upload — call calibration.train to turn it into the subject's own classifier.

ParameterTypeDescription
execution_id *stringThe calibration run to inspect (from calibration.start).

calibration.pause Pause Calibration

Pause a running calibration between trials (cues hold; resume anytime).

ParameterTypeDescription
execution_id *stringThe calibration run to pause.

calibration.resume Resume Calibration

Resume a paused calibration session.

ParameterTypeDescription
execution_id *stringThe calibration run to resume.

calibration.train Train Calibration Model

Train the subject's own classifier from a COMPLETED calibration session (NON-BLOCKING). Fetches the recorded upload, wires it into a train pipeline as a custom_data source, and starts the run. Requires a Pro plan (custom_data training is freemium-gated). The calibrate→train handoff resolves on every backend, desktop-local included; only recordings made before the desktop execution-linkage build resolve no upload — rerun calibration.start for those.

ParameterTypeDescription
execution_id *stringThe COMPLETED calibration run (from calibration.start).
nameDisplay name recorded on the training run.
paradigmstringParadigm of the recording (mi | p300 | sart | target_hit); mi and p300 have default train templates.
template_idTrain template to use (e.g. from catalog.templates); required for sart/target_hit (mi defaults to mi_headband_csp_lda, p300 to p300_hardware_xdawn_lda).
train_graphExplicit train graph instead of a template; its first data node (custom_data/public_data) is rewired onto the recording.

experiment.run Run Experiment

Run 1-25 pipelines as ONE paced experiment (NON-BLOCKING). Returns an experimentId immediately; a background thread submits at most 2 runs at a time (min(max_concurrent, 2)), retries queue-full up to 3 times per run, and polls each execution to completion. Poll experiment.get() for per-run status and, once finished, aggregated metrics. PORTABILITY: the experiment record is written through to the Nimbus server under your account (at start and at completion), so experiment.get works from ANY entry point — local stdio, hosted gateway, another machine — signed in with the same account/token.…

ParameterTypeDescription
runs *array1-25 entries, each {name: str, train_graph: {nodes, connections}} (same graph shape as execution.run's train_graph).
max_concurrentintegerParallel submissions cap, clamped to 1-2 (default 2).

experiment.delete Delete Experiment

Delete one of your experiment records (server + this machine's local cache). Its individual runs are kept — delete them with execution.delete. A still-running experiment cannot be deleted.

ParameterTypeDescription
experiment_id *stringThe experiment to delete (from experiment.run).
confirmbooleanMUST be true to delete — the explicit user go-ahead.

experiment.get Get Experiment

Experiment snapshot: status (running/completed/failed), per-run rows ({name, executionId, status, error?, metrics?, evaluationKind?}) and, once finished, aggregates over completed runs only: per-metric {mean, std, best, n}, plus ``pooledExecutionIds`` / ``pooledRunNames`` / ``kindBreakdown`` (per-subject vs LOSO etc. — each row has kind, n, mean, std, executionIds, runNames; #470). Pooled headline means are unchanged; kindBreakdown labels what was pooled. std is population; None below 2 values. kindBreakdown is always present when aggregates exist (including single-kind experiments). PORTAB…

ParameterTypeDescription
experiment_id *stringThe experiment to inspect (from experiment.run).

execution.artifacts List Run Artifacts

Trained artifacts (models/filters, e.g. *.pkl) saved by an execution.

ParameterTypeDescription
execution_id *stringRun whose artifacts to list.

execution.download_artifact Download Run Artifact

Download one artifact file. Local/stdio: saved to NIMBUS_EXPORT_DIR/executions/<id>/ and its path returned. Hosted gateway: returned inline as ``contentBase64`` (up to 1 MB of base64); larger files point to Nimbus Studio. Nothing is written on the gateway.

ParameterTypeDescription
artifact_name *stringFile name from execution.artifacts (e.g. "nimbus_lda.pkl").
execution_id *stringRun that produced the artifact.

pipeline.export Export Pipeline

Export the pipeline as a standalone runnable Python bundle (zip). Local/stdio: the zip is saved under NIMBUS_EXPORT_DIR/exports and its path returned. Hosted gateway: the zip is returned inline as ``contentBase64`` (up to 1 MB of base64). UI-only nodes (interactive_application) are left out and listed in ``exportNotes``.

ParameterTypeDescription
train_graph *objectPipeline graph {nodes, connections} to export.
nameOptional name recorded inside the bundle.

bids.export_dataset Export Dataset as BIDS

Export a Nimbus dataset as a BIDS-layout zip (local: saved to NIMBUS_EXPORT_DIR/bids/; hosted gateway: inline ``contentBase64``, up to 1 MB). Continuous sources (EDF/BDF uploads, stream recordings) export as BIDS-raw (EDF byte-passthrough; recordings converted HDF5→EDF with events.tsv). Epoched sources (MOABB packs, trial-table uploads) export as BIDS-derivatives (data passthrough + descriptive trial_index/label/session/run events — no fabricated onsets). The zip embeds nimbus_export_manifest.json with sha256s.

ParameterTypeDescription
dataset *stringDataset id — a MOABB pack id (e.g. "BNCI2014_001"), an upload path (as returned by data.upload), or a recording name. Auto-detected.
kindOptional explicit source kind: pack|upload|recording (default auto).
subjectsPack exports only — subject filter (e.g. ["S01", "S03"]) to bound zip size; default exports all installed subjects.

bids.export_execution Export Run as BIDS

Export an execution's results as a BIDS-derivative zip (metrics.json, per-subject participants.tsv, protocol.json, full pipeline_snapshot.json, predictions.tsv when stored, provenance/execution.json). Local: saved to NIMBUS_EXPORT_DIR/bids/. Hosted gateway: inline ``contentBase64`` (up to 1 MB of base64); larger zips point to Nimbus Studio.

ParameterTypeDescription
execution_id *stringRun whose results to export (from execution.run).

device.list List EEG Devices

EEG devices supported by this backend (OpenBCI, Muse, BrainBit, LSL, PiEEG...).

device.test Test EEG Device

Test a device connection WITHOUT starting a stream (safe, no confirm needed).

ParameterTypeDescription
device_type *stringDevice id from device.list (e.g. "brainbit", "muse").
connection_typeDevice-specific selector when several exist (e.g. serial vs wifi).
ip_addressDevice IP for network/wifi devices.
ip_portPort for network devices.
mac_addressBluetooth MAC (BT devices).
portSerial/COM port for wired devices.
serial_numberDevice serial (some BLE stacks).
source_idLSL source id.
stream_nameLSL stream name (LSL devices).

stream.start Start EEG Stream

Connect an EEG device and START a live streaming session on the user's head. Requires confirm=True; call device.test first. Track with stream.status(). Idle watchdog: if no stream.status()/stream.telemetry() poll happens for idle_timeout_sec (default 900), the session is stopped and the device disconnected automatically — an abandoned stream never keeps running on the user's head. Any poll resets the timer; idle_timeout_sec=0 disables the watchdog.

ParameterTypeDescription
device_type *stringDevice id from device.list (e.g. "brainbit").
chunk_sizeintegerSamples per streamed chunk (default 125).
confirmbooleanMUST be true to start — the explicit user go-ahead for a live session on their head; anything else is refused with zero requests.
connection_typeDevice-specific selector (e.g. serial vs wifi).
idle_timeout_secintegerWatchdog: stop+disconnect after this many seconds without a status poll (default 900; 0 disables).
ip_addressDevice IP for network/wifi devices.
ip_portPort for network devices.
mac_addressBluetooth MAC (BT devices).
n_channelsintegerChannel count to open (default 8).
portSerial/COM port for wired devices.
serial_numberDevice serial (some BLE stacks).
session_idOptional existing session to resume/reuse.
source_idLSL source id.
stream_nameLSL stream name (LSL devices).

stream.status EEG Stream Status

Live snapshot of a streaming session (running, deviceConnected). Polling this also feeds the idle watchdog: each call resets the session's idle timer (see stream.start's idle_timeout_sec).

ParameterTypeDescription
session_id *stringThe streaming session to inspect.

stream.stop Stop EEG Stream

Stop a streaming session and disconnect the device (always safe to call). Also removes the session from the idle watchdog so it cannot fire after an explicit stop.

ParameterTypeDescription
session_id *stringThe streaming session to stop.

plots.confusion Plot Confusion Matrix

Confusion-matrix figure for one execution: heatmap with trial counts + per-class accuracy bars, rendered as a PNG the assistant can see. Use it right after execution.results to eyeball WHICH classes are confused, not just the accuracy number.

ParameterTypeDescription
execution_id *stringRun to plot (from execution.run / execution.results).
matrixstring"eval" (held-out, default) or "train" (fit-set / cross-validation). CV and evaluation-plan runs often have no eval matrix — use "train".
savebooleanLocal/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline).

plots.dataset Plot Dataset

Figure over an EEG data source — the visual companion to data.inspect_dataset. kind=psd (Welch, channel mean bold), kind=bandpower (channel × band dB heatmap), kind=topomap (band-power scalp map), kind=spectrogram (time-frequency for one channel). Sources are the same ones inspect uses: MOABB packs, uploads, local files.

ParameterTypeDescription
kind *stringFigure type: psd | topomap | bandpower | spectrogram.
source *string"dataset" (MOABB pack), "upload" (path from data.upload), or "local" (absolute path, local backend only).
bandstringBand for kind=topomap: delta|theta|alpha|beta|gamma (default alpha).
channel_idxinteger0-based channel for kind=spectrogram (default 0).
datasetMOABB dataset id, e.g. "BNCI2014_001" (source=dataset).
modestringPack split to load: training | evaluation | all (source=dataset).
pathUpload path (source=upload) or absolute local path (source=local).
savebooleanLocal/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline).
subjectSubject id, e.g. "S01" (source=dataset).

plots.erp Plot ERP

ERP butterfly figure from epoched data: one subplot per class, all channel means (thin) + across-channel mean (bold), time-locked to the trial event. Shows whether class-conditioned evoked structure exists BEFORE training anything.

ParameterTypeDescription
source *string"dataset" (MOABB pack), "upload" (path from data.upload), or "local" (absolute path, local backend only).
datasetMOABB dataset id, e.g. "BNCI2014_001" (source=dataset).
max_channelsintegerChannels drawn per class subplot (default 16, max 64).
modestringPack split to load: training | evaluation | all (source=dataset).
pathUpload path (source=upload) or absolute local path (source=local).
savebooleanLocal/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline).
subjectSubject id, e.g. "S01" (source=dataset).

plots.leaderboard Plot Leaderboard

Leaderboard bar chart for one dataset: accuracy with 95% CI whiskers, best first; BYO python_model submissions highlighted in a distinct color. The visual companion to catalog.leaderboard. On the pretrained_few_trial track the figure also includes the classical LOSO baseline as a muted side panel for comparison.

ParameterTypeDescription
dataset_id *stringDataset to chart, e.g. "BNCI2014_001" (see catalog.leaderboard).
savebooleanLocal/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline).
trackstring"within_session" (curated 5-fold), "crossSubject" (LOSO, curated + BYO submissions), or "pretrained_few_trial" (the efficiency track: LOSO at the protocol's fixed per-subject trial budget — the figu…

stream.telemetry EEG Stream Telemetry

Live snapshot of a streaming session: latest prediction + recent window, signal quality (meanChannelQuality, snrDb, artifactProbability), indicators, running stats. Poll this while a session runs. Works with OR without a deployed model: modelless hardware streams (no classifier) report live signal quality + focus/relaxation band-power indicators with latestPrediction null; deployed sessions additionally carry predictions and confidence stats. Expect low confidence during filter/ASR warm-up (first seconds); quality < 0.5 or high artifactProbability means the signal is poor. 404 => session not a…

ParameterTypeDescription
session_id *stringThe streaming session to read telemetry for.
windowintegerHow many recent predictions/chunks to include (default 50).

data.upload Upload Data File

Upload an EEG file (.edf/.bdf/.mat/.csv/.txt/.tsv/.h5/.hdf5, <=500MB) to the backend and get the registered path for a custom_data node. sampling_rate (Hz, e.g. 250.0) is REQUIRED for plain CSV/TSV/TXT files without embedded metadata — uploads without it are rejected (no silent 250 Hz assumption). format overrides extension-based detection (auto, mat, csv, tsv, txt, edf, bdf, h5, hdf5).

ParameterTypeDescription
file_path *stringLocal file to upload (.edf/.bdf/.mat/.csv/.txt/.tsv/.h5/.hdf5, <=500MB).
dataset_nameOptional label for the uploaded dataset.
formatOverride extension-based detection (auto|mat|csv|tsv|txt|edf|bdf|h5|hdf5).
sampling_rateHz for headerless CSV/TSV/TXT (REQUIRED there, e.g. 250.0).

data.delete_upload Delete Upload

Delete an uploaded file from your account (disk + registry). Requires confirm=True. Pass the path returned by data.upload (file.path). Only your own uploads can be deleted; missing paths return not-found.

ParameterTypeDescription
path *stringUpload path from data.upload (e.g. user_…/file.csv).
confirmbooleanMUST be true to delete — the explicit user go-ahead.

data.inspect_dataset Inspect Dataset

Exploratory summary of a public EEG dataset (MOABB pack): channels, sampling rate, trial/class balance, per-channel µV stats, band powers and a PSD overview. Look at the data BEFORE building pipelines: class balance drives stratification choices (imbalanced classes skew accuracy), and flatlined channels mean a montage/reference problem worth fixing first. subject defaults to the dataset's catalog ``defaultSubject`` (see catalog.datasets), e.g. "S01"; a comma-list like "S01,S03" loads a cohort. mode: training | evaluation | all. Units note: values are ASSUMED volts by the loader — a µV-nat…

ParameterTypeDescription
dataset *stringDataset id from catalog.datasets (e.g. "BNCI2014_001").
modestringWhich split to summarize — training | evaluation | all.
subjectSubject code ("S01") or comma-list cohort ("S01,S03"); defaults to the catalog defaultSubject.

data.inspect_file Inspect Data File

Exploratory summary of an EEG file (.edf/.bdf/.mat/.csv/.tsv/.txt/.h5): channels, sampling rate, trial/class balance, per-channel µV stats, band powers and a PSD overview. The path shape picks the source: ABSOLUTE path → read the file from disk (only on a LOCAL backend: desktop app / MCP local mode — no upload needed); RELATIVE path (the one data.upload returns) → describe the uploaded file, which works on ANY backend (hosted or local). Look at the data BEFORE building pipelines: class balance drives stratification choices, and flatlined channels mean a montage/reference problem worth…

ParameterTypeDescription
path *stringABSOLUTE filesystem path (`~` is expanded; local backends only) or the RELATIVE upload path returned by data.upload (works on any backend).
sampling_rateHz for CSV/TSV/TXT files (REQUIRED there, e.g. 250.0).

project.create Create Project

Create a project (container for one pipeline document). Returns projectId.

ParameterTypeDescription
name *stringProject display name (e.g. "MI CSP-LDA sweep").
descriptionOptional longer description shown in the studio.

project.list List Projects

List projects owned by the current principal (agent work included).

project.save Save Project Pipeline

Save a pipeline graph into a project (visible on the studio canvas). Always pass expected_revision from the last project.load (or a prior save/create response). When it does not match the current server revision, the save fails with a conflict — it does NOT silently overwrite concurrent edits. Omitting it is rejected so a stale single-writer convenience path cannot wipe another client's work.

ParameterTypeDescription
expected_revision *integerOptimistic-concurrency base from project.load / a prior save. Required.
project_id *stringTarget project (from project.create/project.list).
train_graph *objectPipeline graph {nodes, connections} to persist.
nameOptional pipeline name stored on the document.
subjectOptional dataset subject code (e.g. "S01") for this pipeline.

project.load Load Project

Load a project's saved pipeline (train graph + meta) for editing/re-running.

ParameterTypeDescription
project_id *stringProject whose pipeline document to load.

project.rename Rename Project

Rename a project you own (max 200 characters).

ParameterTypeDescription
name *stringNew display name.
project_id *stringProject to rename (from project.create/project.list).

project.delete Delete Project

Delete a project (and its saved pipeline document) from the studio workspace. Requires confirm=True: this removes the project from the user's project list. Executions already run from it are not affected. Find ids with project.list.

ParameterTypeDescription
project_id *stringProject to delete (from project.create/project.list).
confirmbooleanMUST be true to delete — the explicit user go-ahead.

protocol.validate Validate Protocol

Validate a neurofeedback protocol document WITHOUT saving it. Returns {valid: true, spec} on success, or {valid: false, errors: [...]} with the per-violation list (loc/msg) when the document is invalid — the verdict is data, never an exception.

ParameterTypeDescription
spec *objectWire-format protocol document (camelCase): id, name, indicator {name, transform}, armDefaults, blocks [{id, kind: assessment|training, durationSec, feedback?}], threshold, sessions, breakCriteria.

protocol.save Save Protocol

Validate and persist the NEXT VERSION of a protocol document (confirm-gated: each call appends a version row; accidental calls clutter the version history). Edits create a new version — the assignment pins the version it runs.

ParameterTypeDescription
spec *objectWire-format protocol document (validate first to iterate).
confirmbooleanMUST be true to write.

protocol.list List Protocols

Every saved protocol id at its latest version.

protocol.start_assignment Start Protocol Assignment

Enroll a subject and prepare their neurofeedback deploy session (confirm-gated — a session runs on a human). Creates the assignment (yoked sham arms REQUIRE yoked_donor_upload_id: a recorded simulated session's upload — mint one by running an active-arm session and data.upload-ing its recording), then persists the protocol graph as a deployable execution. Requires a Pro plan for LIVE hardware sessions; simulated-source sessions (the default template) are free. Graph source: execution_id reuses THAT run's stored graph (it must contain a protocol_session node; no device is pre-connected —…

ParameterTypeDescription
arm *stringactive | sham.
protocol_id *stringSaved protocol id (protocol.save).
protocol_version *integerImmutable version the assignment pins.
subject_label *stringSubject identifier (e.g. "S01").
confirmbooleanMUST be true — explicit go-ahead for a session on a human.
execution_idOptional completed execution whose stored graph carries a protocol_session node; default clones the template.
yoked_donor_upload_idDonor recording upload (required when the arm's blocks resolve to yoked — the backend validates coverage).

protocol.session_status Protocol Session Status

Live snapshot of a protocol deploy session: the scheduler block / session progress + threshold state (under ``protocol``) beside the telemetry window (recent indicators, quality, stats).

ParameterTypeDescription
session_id *stringThe deploy session to inspect (from start_assignment).
windowintegerHow many recent predictions to include (1-200, default 50).

protocol.pause Pause Protocol Session

Pause a running protocol session (blocks freeze; the session and device stay alive — resume with protocol.resume). Simulated and playback sessions only while paused: no data is recorded.

ParameterTypeDescription
session_id *stringThe deploy session to pause.

protocol.resume Resume Protocol Session

Resume a paused protocol session (restarts the server-driven device loop). Live-hardware resume requires a Pro plan; simulated sessions are free. Pass the session's channel count (start_assignment reports it).

ParameterTypeDescription
session_id *stringThe deploy session to resume.
chunk_sizeintegerSamples per streamed chunk (default 125).
n_channelsintegerSession channel count (the built-in template opens 4).

protocol.stop Stop Protocol Session

Stop a protocol session (always safe to call): stops streaming, saves the block-annotated recording, advances the assignment when the scheduler reached its natural end, and disconnects the device (best-effort — a failed disconnect is reported, never raised).

ParameterTypeDescription
session_id *stringThe deploy session to stop.

protocol.export_stats Export Protocol Stats

Paired pre/post analysis for one assignment's recorded sessions: per-block aggregates (descriptive + CSV), paired t / Wilcoxon / dz (per-statistic minimums: paired t and Cohen's dz need ≥ 3 completed sessions, Wilcoxon needs ≥ 5), specificity notes, the adaptive-threshold trajectory, and a pre/post figure (base64 PNG — render or save it to look at the effect). An assignment with no recordings yet returns the empty payload with a note, never an error.

ParameterTypeDescription
assignment_id *stringThe assignment to analyze (from start_assignment).

python.validate Validate Python Model

Statically check a python_model script (BYO model class) without running it. Compiles the source and verifies the contract — a class with fit(X, y, info) and predict(X); optional predict_proba(X) unlocks confidence panels. Never executes the code, so it is safe against the hosted backend. Use it before execution.run to catch syntax errors, missing methods, or the wrong class name cheaply.

ParameterTypeDescription
code *stringPython source of the model class (<=256KB UTF-8).
class_nameContract class to instantiate; omit to auto-detect the first class defining fit+predict.

stats.grouped Grouped Statistics

Cluster-aware group statistics across executions. REQUIREMENT (read first): each execution must have been run with an evaluation plan that STORED per-SUBJECT accuracies for at least 3 subjects — e.g. leave-one-subject-out (LOSO) or grouped CV over >= 3 subjects. Session groups within one subject (multi-session single-subject runs) are refused with ``nimbus.stats.non_subject_groups`` — those are not independent subjects. A plain single-subject CV run with no subject/session grouping stores no group stats and fails with ``nimbus.stats.insufficient_groups``. HOW to get grouped stats: in the…

ParameterTypeDescription
execution_ids *array1–25 executions (from execution.run) to pool. Runs without subject group stats are reported with nulls but do not fail the request — unless NONE qualifies (``nimbus.stats.insufficient_groups``) or…
chanceChance level in [0, 1]; default 1/nClasses per execution.

foundation.compare Compare Foundation Backbones

Run every available pretrained backbone on YOUR data and see which wins — a ranked bar chart with CI whiskers, params, and wall time per backbone. Backbones that can't process your data (window size, channel count) are noted, not silently skipped. Each backbone embeds your trials frozen (the exact foundation_features preprocessing), a LDA is cross-validated on the embeddings. Returns a PNG image PLUS a JSON text block (and structuredContent.meta.results) with per-backbone accuracy, CI, embed dim, params, and time — pick the foundation_features backbone by measurement, not vibes.

ParameterTypeDescription
source *string"dataset" (MOABB pack), "upload" (path from data.upload), or "local" (absolute path, local backend only).
datasetMOABB dataset id, e.g. "BNCI2014_001" (source=dataset).
modestringPack split to load: training | evaluation | all (source=dataset).
pathUpload path (source=upload) or absolute local path (source=local).
subjectSubject id, e.g. "S01" (source=dataset).