MCP tools
Agents connect through beamtime setup (or beamtime mcp install) and call the same operations as
the commands, each as a tool named like its command path (note add is note_add). The
setting mcp_tools: core lists the 20 core tools plus tools_more, which describes and
calls the tools of the families (views, blocks, runs, export, scripts); all lists all 47.
Agents with a shell join and format answers in Python with from beamtime import bt, where every
operation is a function whose answer is a plain dict; the script tool (family scripts) runs the
same code for clients without a shell.
a = bt.importance(from_="scaling/lr-sweep", target="metric.val/acc.max")
for row in a["rows"]:
print(row["field"], row["eta_squared"])
Core tools#
status#
Daemon, index and freshness; check before working with live runs.
CLI: beamtime status
keys#
Metrics, config keys, data keys and tags: the first call in a group.
CLI: beamtime keys
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
groups#
The group tree: research status, check, verdict and run counts.
CLI: beamtime groups
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
runs#
A run table: filter with where, choose columns, sort, limit.
CLI: beamtime runs
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
select |
list of string | fields, e.g. run.name, config.lr, metric.val/acc.max | |
sort |
list of string | fields; a leading - sorts descending | |
limit |
integer | a number | |
by |
list of string | one row per value of these fields, e.g. config.lr | |
seeds |
string | e.g. config.seed: average over seeds | |
to |
string | write all of it to this .csv or .json file below .beamtime/exports/ and answer the path (outside the token budget) |
card#
One run's card: status, config, metric statistics, recent events.
CLI: beamtime card
| Parameter | Type | Default | |
|---|---|---|---|
run |
string | required |
series#
Curves of metrics, raw or downsampled, per run or aggregated.
CLI: beamtime series
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
y |
list of string | required | metric keys, e.g. train/loss |
x |
string | _step |
_step, _t, _elapsed or a metric key |
steps |
list of integer | [first, last] step window | |
points |
integer or all | points per curve; all: every logged point, as exports ask | |
smooth |
number | a number | |
by |
list of string | aggregate runs by these fields, e.g. config.lr | |
seeds |
string | e.g. config.seed: average over seeds | |
band |
minmax|std|stderr|none | minmax |
minmax, std, stderr, none |
to |
string | write all of it to this .csv or .json file below .beamtime/exports/ and answer the path (outside the token budget) |
data#
Logged tables, images and text of a key.
CLI: beamtime data
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
key |
string | required | |
step |
last|all or integer or list of integer or last | last |
last, all, a number |
limit |
integer | a number | |
clock |
string |
logs#
Output of a run or a group's runs; failed runs' tracebacks by signature.
CLI: beamtime logs
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
grep |
string | regular expression; show its matches | |
tail |
integer | 10 |
lines (with grep: matches) per run |
context |
integer | 0 |
lines around each match |
rank |
integer | 0 |
a number |
diagnose#
Flag runs: non-finite, diverging, stalled, restarted, short, missing metrics.
CLI: beamtime diagnose
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
metrics |
list of string | metrics a run must have; default: those most runs have |
compare#
Runs or groups side by side: config differences, code, final metrics.
CLI: beamtime compare
| Parameter | Type | Default | |
|---|---|---|---|
targets |
list of string | required | two or more runs or groups, on one source |
metrics |
list of string | metric keys to tabulate; default: all logged |
notes#
Notes with descriptions and states; open questions with --open.
CLI: beamtime notes
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
types |
list of string | ||
open |
boolean | False |
only open questions |
current |
boolean | False |
leave out notes that a newer version supersedes |
full |
boolean | False |
include fields and bodies |
limit |
integer | a number | |
before |
string | only notes older than this note id (paging) |
proposal_show#
The current proposal, its earlier versions and their checks.
CLI: beamtime proposal show
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
importance#
How strongly each config field relates to a target: Spearman and eta squared.
CLI: beamtime importance
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
target |
string | required | |
fields |
list of string |
check#
The predictions of a proposal version and their results, with plan progress.
CLI: beamtime check
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
version |
string | default: the current one |
memory_show#
The memory of a group and every group above it; read before designing.
CLI: beamtime memory show
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
note_add#
Add a note; verdicts get the check snapshot added automatically.
CLI: beamtime note add
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | required | group below the log dir, or a run id |
type |
observation|decision|idea|question|theory|verdict | required | observation, decision, idea, question, theory, verdict |
description |
string | required | one line; what listings show |
body |
string | Markdown; [[run-id]], [[group#prediction]] link | |
resolves |
list of string | ids of notes it answers | |
supersedes |
string | id of a note it corrects | |
completes |
list of string | decisions: groups declared complete | |
evidence |
list of string or object | run ids, note ids, group#prediction, group@view-version, or {metric, stat, run, value} | |
proposal |
string | verdicts: the judged proposal version | |
verdict |
object | verdicts: prediction -> confirmed, refuted or inconclusive | |
overall |
confirmed|refuted|inconclusive | confirmed, refuted, inconclusive | |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
proposal_set#
Save a new proposal version; a frozen one is superseded with a reason.
CLI: beamtime proposal set
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | required | group below the log dir, or a run id |
file |
string | a YAML file with the proposal | |
proposal |
object or string | the proposal as an object or YAML text, instead of file | |
reason |
string | why a frozen current version is superseded | |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
memory_update#
Save a new memory version; warns beyond the size budget.
CLI: beamtime memory update
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
file |
string | a Markdown file | |
body |
string | the memory, instead of file | |
covers_until |
string | default: the time of the newest note in scope | |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
query#
Any query in its object form, e.g. {runs: {from: ., limit: 5}}.
CLI: beamtime query
| Parameter | Type | Default | |
|---|---|---|---|
query |
object | required | one kind: keys, runs, series, data, timeline, groups, file, importance |
guide#
The agent guide by topic: views, charts, the record. Read before view new.
CLI: beamtime guide
| Parameter | Type | Default | |
|---|---|---|---|
part |
examples|blocks|views|queries|checklist|anti-patterns|charts|kit|kit-api|library|proposals|predictions|notes|verdicts|memory|remote|analysis|scripts|data-files|type | default: the topic list | |
name |
string | one example or block, e.g. sweep or scatter | |
group |
string | fill examples with its keys |
Family: views#
view_new#
Start a view draft in .beamtime/drafts/: from an example or the current view.
CLI: beamtime view new
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | required | group below the log dir, or a run id |
from |
sweep|ablation|run|direction|custom|data | an example to start from; default: the page's current view | |
name |
string | default: the group's name |
view_data#
Copy a data file into a view draft's data/ and show its columns.
CLI: beamtime view data
| Parameter | Type | Default | |
|---|---|---|---|
draft |
string | required | the draft's name, from view new |
file |
string | required | a CSV, JSON or Parquet file inside the project |
name |
string |
view_validate#
Check a draft: schema, queries, fields, data, and one render for layout.
CLI: beamtime view validate
| Parameter | Type | Default | |
|---|---|---|---|
draft |
string | required | the draft's name, from view new |
render |
boolean | True |
also render once, if a browser exists |
view_render#
Screenshot a draft (or one block) to look at it; at most two rounds.
CLI: beamtime view render
| Parameter | Type | Default | |
|---|---|---|---|
draft |
string | required | the draft's name, from view new |
block |
string | one block's id; default the page | |
theme |
light|dark | light |
light, dark |
width |
integer | 1280 |
a number |
view_save#
Save a draft without errors as the page's new view version.
CLI: beamtime view save
| Parameter | Type | Default | |
|---|---|---|---|
draft |
string | required | the draft's name, from view new |
message |
string | what this version changes | |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
view_show#
The YAML of a page's current (or a given) view version.
CLI: beamtime view show
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
version |
string | default: the newest |
view_history#
A page's view versions with author and message, newest first.
CLI: beamtime view history
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
view_outdated#
Views pinned to older versions of their library blocks.
CLI: beamtime view outdated
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
view_upgrade#
Re-pin a view to the newest versions of its library blocks; validates first.
CLI: beamtime view upgrade
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | required | group below the log dir, or a run id |
block |
string | one block; default all | |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
Family: blocks#
block_list#
Library blocks a group can use, with descriptions and params.
CLI: beamtime block list
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
the blocks this group can use |
block_show#
A library block's definition and code.
CLI: beamtime block show
| Parameter | Type | Default | |
|---|---|---|---|
name |
string | required | a library block's name, e.g. phase-map |
group |
string | . |
group below the log dir, or a run id |
version |
string | default: the newest |
block_promote#
Start a block draft from a custom block of a group's view.
CLI: beamtime block promote
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | required | the group whose view has the custom block |
block_id |
string | required | the custom block's id in that view |
name |
string | required | a library block's name, e.g. phase-map |
block_fork#
Start a block draft as a copy of a library block.
CLI: beamtime block fork
| Parameter | Type | Default | |
|---|---|---|---|
name |
string | required | a library block's name, e.g. phase-map |
new_name |
string | required | the new block's name |
group |
string | . |
group below the log dir, or a run id |
block_validate#
Check a block draft: params, examples, generality, code, and a render.
CLI: beamtime block validate
| Parameter | Type | Default | |
|---|---|---|---|
draft |
string | required | the block draft's name, from promote or fork |
render |
boolean | True |
render its examples, if a browser exists |
block_save#
Save a block draft without errors as a new library block version.
CLI: beamtime block save
| Parameter | Type | Default | |
|---|---|---|---|
draft |
string | required | the block draft's name, from promote or fork |
group |
string | . |
where it lives; default the log dir root |
message |
string | what this version changes | |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
Family: runs#
wait#
Block until the runs finished or a condition holds, then say what changed.
CLI: beamtime wait
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
until |
string | finished |
finished: no run is running; or a condition such as 'metric.val/acc.max>0.9' that one run meets |
timeout |
number | 300.0 |
seconds; over MCP at most 45, then call again |
resume#
What's needed to resume a killed run by hand: command, cwd, step, checkpoint.
CLI: beamtime resume
| Parameter | Type | Default | |
|---|---|---|---|
run |
string | required | the run id |
output#
Captured stdout and stderr of a run: tail, grep, rank.
CLI: beamtime output
| Parameter | Type | Default | |
|---|---|---|---|
run |
string | required | |
tail |
integer | 50 |
a number |
grep |
string | ||
rank |
integer | 0 |
a number |
file#
A data file stored with a view.
CLI: beamtime file
| Parameter | Type | Default | |
|---|---|---|---|
view |
string | required | |
path |
string | required | |
columns |
list of string | which columns, in this order; default all | |
draft |
string | read from this draft instead |
timeline#
Notes and run events in time order.
CLI: beamtime timeline
| Parameter | Type | Default | |
|---|---|---|---|
from |
string | . |
group below the log dir, or a run id |
depth |
all or integer | all |
all, a number |
where |
object | field -> value or {op: value}; ops eq ne lt le gt ge in nin has exists glob; also any: [...], not: {...}. Fields: run.status, config.lr, metric.val/acc.max, metric.train/loss.mean[0:1000], value.test/acc | |
hidden |
boolean | False |
include hidden (test) runs |
types |
list of string | ||
since |
string | ||
limit |
integer | a number | |
full |
boolean | False |
digest#
One page on a group: statuses, check, best per setting, failures, notes, gaps.
CLI: beamtime digest
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
metric |
string | metric for the best-per-setting table; default: the proposal's |
plan_missing#
The plan's grid points without a run, with their config, for launching.
CLI: beamtime plan missing
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
name#
Give a run a display name (a new version; the id never changes).
CLI: beamtime name
| Parameter | Type | Default | |
|---|---|---|---|
run |
string | required | the run id |
name |
string | required | the run's new display name |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
run_promote#
Count hidden (test) runs like any run from now on.
CLI: beamtime run promote
| Parameter | Type | Default | |
|---|---|---|---|
runs |
list of string | required | hidden runs to count from now on |
reason |
string | ||
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
Family: export#
export#
Write a page as HTML that opens from disk (--html), or its blocks as figures.
CLI: beamtime export
| Parameter | Type | Default | |
|---|---|---|---|
group |
string | . |
group below the log dir, or a run id |
html |
string | a folder for the page, which then opens from disk | |
figures |
string | a folder for one figure per block | |
points |
integer or all | 1000 |
points per curve; all: every logged point |
size |
single|double | single |
figure width: one column (3.3 in) or two (6.9 in) |
cp#
Copy a run or group into another group, under new run ids; never the source.
CLI: beamtime cp
| Parameter | Type | Default | |
|---|---|---|---|
source |
string | required | a run id, or a group to copy |
dest |
string | required | the destination group |
name |
string | a run: its new display name; a group: the destination's name | |
with_checkpoints |
boolean | False |
copy checkpoint files in, leaving no reference to the source |
with_record |
boolean | False |
a group only: also copy proposal, notes, view, memory and blocks |
Family: scripts#
script#
Run Python with bt preloaded; answers its output.
CLI: beamtime script
| Parameter | Type | Default | |
|---|---|---|---|
code |
string | required | Python; bt is preloaded, print what you need |
timeout |
number | 60 |
seconds before the script is killed |
author |
string | who writes it: a person, or your model id such as claude-opus-5-5; default: the local account |
Not for agents#
Agents never run these; they tell you the command instead.
beamtime serve: The web UI and the indexing daemon for this root; --no-ui only indexes.beamtime demo: Generate a sample log dir and serve it.beamtime setup: Set up this project and this machine, or change the setup.beamtime mcp install: Registerbeamtime mcpwith an agent client.beamtime settings: The effective settings and the level each value comes from.beamtime set: Set theme, theme_mode or figure_style in this project's beamtime.yaml.beamtime doctor: Check the installation, root, log dir and cache.beamtime reindex: Rebuild the index from the files.beamtime mv: Move a run into a group, or move or rename a group; running runs are refused.beamtime rm: Move a run or group into the trash.beamtime block export: Copy a library block with every version into/blocks/ /. beamtime block import: Copy library blocks from a project, a folder or a git repository into a group.beamtime pull: Copy a remote group into a read-only snapshot that answers while it's away.beamtime note rm: Move a note, with the earlier versions it replaced, into the trash.beamtime gc: Empty the trash and remove ended runs without metrics (with --yes).beamtime ps: Every Beamtime process here: serves, index daemons, remotes, MCP servers.beamtime stop: Stop this directory's serve, or the one for a root, log dir or pid (or all).beamtime source add: Add a remote: name, host:/path; probes ssh for the command unless given.beamtime source list: List the configured remotes.beamtime source rm: Remove a remote from wherever it is configured.