analyze_run
Compute spike-timing, ring-period, and phase-window metrics from a spikes CSV, returning compact JSON for acceptance checks and neural run validation.
Instructions
Acceptance metrics from a spikes CSV, as compact JSON (never rows).
For Trainer-owned time windows (seconds from attempt_start), falls, and stored neuron
state (leak_coefficient, membrane_potential) use get_run_window_stats (Studio MCP)
instead; this tool covers spike-timing, ring-period and phase-window metrics only.
csv_path is a Trainer run's neural/spikes.csv (the dir from list_run_data;
columns burst,area,x,y,z) or a record_spikes csv_path
(burst,area_id,area_name,x,y,z,memory_neuron_id). Areas are named as in the file.
A phase area's phase at a burst is the z bins it fires in; while silent, the last
phase is carried forward. Metrics (each optional):
ring:{area, anchor_bin=0, bins?}period in bursts between entries intoanchor_bin(period_mean,period_sd,cycles) andbins_visited.port_in_window: list of{port, phase_area, bins, lag=0}:pct_insideof the port's spikes whose phaselagbursts earlier is inbins(a list, or"3..7").window_counts: list of{area, phase_area, bins, lag=0}: the area's spikes in and out of the phase window (e.g. resets in/out of window).duty:{area, phase_area, bins, half_bins?}fire fraction and silent episodes (off_episodes) per half-cycle of the phase area (lower half of0..bins-1unlesshalf_binsis given).
Args: csv_path: Spikes CSV file ring: Ring period request port_in_window: Port-versus-phase-window requests window_counts: Spikes-in/out-of-window requests duty: Duty / off-episode request first_burst: Ignore bursts before this one last_burst: Ignore bursts after this one
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"csv_path": "<csv_path>"
},
"name": "analyze_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duty | No | ||
| ring | No | ||
| csv_path | Yes | ||
| last_burst | No | ||
| first_burst | No | ||
| window_counts | No | ||
| port_in_window | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||