Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

record_spikes

Read-only

Records burst-exact spike firing across up to 64 areas from FEAGI's Fire Ledger, returning per-area fire fractions, top voxels, runs, and optional modal patterns without sampling away silent bursts.

Instructions

Burst-exact firing of up to 64 areas over the next bursts bursts.

Reads FEAGI's Fire Ledger (/v1/burst_engine/fire_history): one frame per burst per area, silent bursts included, so no burst is sampled away (monitor_activity and get_fire_queue_detailed see about one burst in five). The areas are subscribed for the recording and released after it. Starts now and returns when bursts bursts have passed (max 20000); start a hold_stimulus(background=True) first to drive the areas.

A call waits bursts x the burst interval. One that would wait longer than about 50 s is refused (MCP clients cut long tool calls): pass background=True to get a recording_id at once and read the same summary with get_spike_recording once the window has passed.

Returns a compact summary, never rows: per area fired_bursts, fire_fraction, total_spikes (memory neurons included), memory_spikes and top_memory_neurons (dynamic memory neurons have no voxel, so they never appear in top_voxels), fire_kind_counts (spikes per fire kind name, e.g. stdp_eligible and episodic_memory; the kind is stored per fired neuron in the Fire Ledger, so it is exact for every recorded area), first_fire_burst/ last_fire_burst, fire runs (capped) and the top_voxels; plus first_burst, last_burst, bursts_observed and gaps (bursts with no ledger frame). Pass csv_path to write every spike as burst,area_id,area_name,x,y,z,memory_neuron_id,fire_kind,fire_kind_name (fire_kind is the raw value, fire_kind_name its name).

modal_summary=True adds modal_pattern to each area: a pattern is the set of voxels that fired in one burst. It reports distinct_patterns, modal (the most common pattern: its voxels, bursts, share_of_fired, share_of_observed, first/last burst), empty_bursts and the empty_runs (runs of consecutive silent bursts, with empty_run_count and longest_empty_run). Memory neurons have no voxel and are not part of a pattern. gaps still means bursts with no ledger frame.

Args: areas: Area ids, names or region ids (1-64 after region expansion) bursts: Bursts to record (1-20000, default 200) csv_path: Optional CSV file for the spike rows max_runs: Fire runs listed per area (default 20; runs_truncated says if more exist; run_count is always the full count) background: Return a recording_id at once and record in the background (default False) modal_summary: Add the per-area modal firing pattern summary (default False)

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": {
      "areas": "<areas>"
    },
    "name": "record_spikes"
  }
}

Input Schema

NameRequiredDescriptionDefault
areasYes
burstsNo
csv_pathNo
max_runsNo
backgroundNo
modal_summaryNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond ``readOnlyHint: true`` the description discloses the transient subscription/release of the areas, the blocking-wait semantics tied to burst interval, the ~50 s refusal ceiling, the 20000-burst cap, CSV side effects, and that results are a compact summary "never rows." That is substantial context an agent cannot get from the annotations, and the described subscription does not contradict the read-only hint since no brain data is modified.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded purpose and the wait/refusal paragraph earn their place, but a large middle section enumerates return fields (``fired_bursts``, ``fire_kind_counts``, ``top_voxels``, ``modal_pattern``, ``gaps``, etc.) that an output schema already covers, which bloats the definition. Structure is coherent — narrative, then Args — but it is considerably longer than needed to select and invoke the tool correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a long-running, blocking, side-effecting recording tool with six parameters and zero schema coverage, everything an agent needs is present: prerequisite stimulus, timeout behavior, background workaround, area limits, and what the summary vs. CSV contains. Nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and the Args block documents every one of the six parameters with range, default and effect: ``areas`` (1-64 after region expansion), ``bursts`` (1-20000, default 200), ``csv_path``, ``max_runs`` (with ``runs_truncated``/``run_count`` semantics), ``background``, and ``modal_summary``. It adds meaning well past what the bare schema types convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line names a specific verb and resource with scope: "Burst-exact firing of up to 64 areas over the next ``bursts`` bursts." It explicitly distinguishes itself from ``monitor_activity`` and ``get_fire_queue_detailed`` by explaining they only see about one burst in five, so an agent can pick the right tool without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives the prerequisite ("start a ``hold_stimulus(background=True)`` first to drive the areas"), the exclusion (calls that would wait over ~50 s are refused), and the alternative path (``background=True`` plus ``get_spike_recording``) for exactly that case. When-to-use, when-not, and the sibling substitute are all stated rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools