Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

hold_stimulus

Force specified voxels in a brain area to fire on every burst for a set duration, with optional verification that each burst landed, and run it in the background while tracing or recording spikes.

Instructions

Hold voxels of one area firing on every burst for duration_s seconds.

Posts the stimulus on a wall-clock schedule at twice the burst rate and never reads the burst counter or fire queue per burst, so no burst is skipped at 200 Hz (unlike a run_stimulus_protocol hold, which also reads the ~100 KB fire queue per burst). With verify the area's Fire Ledger frames are read back and every burst in (first_post_burst, last_post_burst + 1] is checked for all held voxels: landed reports checked/landed/missed bursts. The result is under 2 KB. Max 30 s in the foreground (one tool call), 600 s with background=True.

background=True returns at once with a hold_id and keeps holding, so a trace or record_spikes can run beside it; read the outcome with get_stimulus_hold. A background hold keeps firing after the caller leaves; get_stimulus_hold(cancel=True) stops it. Give related holds the same label to cancel them together with cancel_stimulus(label=...) or extend them together with renew_stimulus(label=...). start_delay_s delays the first post (a trace-relative start).

Args: area: Area id or name voxels: [[x, y, z], ...] to force-fire every burst duration_s: Hold length in seconds (0 < d <= 30; <= 600 with background) start_delay_s: Seconds to wait before the first post (default 0) background: Return immediately and hold in the background (default False) verify: Read back the ledger and report which bursts landed (default True) potential: Membrane potential the forced neurons fire with (finite, > 0). Default None = the server's own (100). It is a probe that bypasses threshold and refractory; a neuron that already fired naturally in that burst keeps its own potential. Mechanisms that read firing potential (MP-driven PSP, graded modulator drivers) see this value; outputs that read strength clamp or scale it themselves. If FEAGI does not apply it (older version) the call returns an error; applied_potential is returned when reported. One value for every post of the hold. label: Optional group name (<= 64 characters) for cancel_stimulus and renew_stimulus; several holds may share one label

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": {
      "area": "<area>",
      "voxels": "<voxels>",
      "duration_s": "<duration_s>"
    },
    "name": "hold_stimulus"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYes
labelNo
verifyNo
voxelsYes
potentialNo
backgroundNo
duration_sYes
start_delay_sNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: wall-clock posting at twice the burst rate, no per-burst counter reads so bursts aren't skipped at 200 Hz, verify-landed readback semantics over (first_post_burst, last_post_burst + 1], sub-2KB result size, 30 s foreground vs 600 s background limits, and the fact that a background hold keeps firing after the caller leaves. It also discloses that potential is a probe bypassing threshold and refractory, that already-fired neurons keep their own potential, and that older FEAGI versions return an error.

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

Conciseness4/5

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

It is long but front-loaded with purpose and structured into a behavior narrative followed by an Args list, so an agent can scan it. A few passages are dense and slightly repetitive, e.g. restating the label-based cancel/extend behavior across two sentences, but nearly every sentence carries actionable information.

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 an 8-parameter stimulation tool with no annotations, the definition covers timing, limits, background lifecycle, verification output, error conditions, and potential semantics, and an output schema already handles return-value structure. Nothing an agent needs in order to call it correctly appears to be 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 must compensate, and its Args block documents all eight parameters: area, the [[x,y,z],...] voxel format, duration bounds (0 < d <= 30, <= 600 with background), start_delay_s as a trace-relative delay, background, verify, potential (value range, probe semantics, one value per post, applied_potential reporting), and label with a 64-character limit and grouping behavior.

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 sentence gives a specific verb and resource with scope: 'Hold voxels of one area firing on every burst for duration_s seconds.' It also explicitly contrasts with a run_stimulus_protocol hold, so an agent can distinguish this tool from its closest sibling without opening any 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?

The description names concrete alternative paths and the conditions selecting them: use run_stimulus_protocol for a hold that reads the fire queue, use background=True when a trace or record_spikes must run alongside, read the outcome with get_stimulus_hold, and cancel/extend with cancel_stimulus/renew_stimulus via a shared label. When-to-use, when-to-use-background, and follow-up tooling are all explicit.

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