Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

run_stimulus_protocol

Run a timed stimulus sequence and record per-burst firing in one call, combining stimulation and monitoring for protocol experiments.

Instructions

Present a timed stimulus sequence and record per-burst firing in one call.

Replaces running a hold (stimulate_area_batch with bursts) and a monitor concurrently. On each new burst counter value all of a step's stimuli are posted as ONE manual_stimulation payload (every area fires on the same burst), then the fire queue is read and each distinct sample timestep is recorded once, keeping only record_areas. Total bursts are capped at 30 s of bursts. Memory-area neurons appear at (0,0,0).

Args: steps: List of {"bursts": N, "stimuli": [{"area_id": str, "coordinates": [[x, y, z], ...]}], "label": optional str}. Empty stimuli is a rest step. steps_file: Path to a JSON file holding the same list as steps (use it for long protocols, such as replaying recorded values, so the steps cost no tokens). Pass steps or steps_file, not both. Errors name the problem: missing file, invalid JSON, not a list, empty list, or an item that is not an object. record_areas: Area ids whose firing is recorded (required) tail_bursts: Bursts to record after the last step (default 0) mode: Stimulation mode (default force_fire) repeat: Run the step list this many times in a row (default 1); the tail follows the last repeat. steps in the result then has one row per repeated step. compact: Per-step, per-area fire counts instead of per-voxel lines: each steps row gets fires (area -> firing_bursts, neuron_fires), areas keeps only firing_bursts, and bursts is omitted. 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 stimulus of every step.

Returns: steps (label, first/last posted burst, bursts posted), areas (firing_bursts and per-voxel voxel_counts), bursts (only bursts where a recorded area fired: burst, step, areas), bursts_missed (window bursts no read observed) and success.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_stimulus_protocol"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoforce_fire
stepsNo
repeatNo
compactNo
potentialNo
steps_fileNo
tail_burstsNo
record_areasNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the 30 s burst cap, that all areas of a step fire on one burst, that each timestep is recorded once, that memory-area neurons appear at (0,0,0), exclusive-or semantics for the two input paths, repeat/tail ordering, and that `potential` bypasses threshold and refractory and errors on unsupported servers. Side-effect scope (whether it leaves any hold behind) is the only notable omission.

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?

The summary is front-loaded and the Args/Returns structure is easy to scan. The `potential` paragraph is noticeably verbose for a tuning parameter, but every sentence there conveys a distinct caveat (clamping, natural-fire precedence, older-version error), so little is genuinely wasted.

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 orchestration tool with no annotations, the definition covers inputs, ordering semantics, limits, failure modes, and even repeats a Returns summary despite an output schema existing. An agent has everything needed to construct a correct call and interpret the result.

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 entirely, and it documents all eight parameters in an Args block, including types, defaults, and behavioral meaning (e.g., `repeat` produces one result row per repeated step; `compact` changes which fields appear in `steps`/`areas`/`bursts`; `potential` is finite and > 0, defaulting to 100). This is meaning well beyond raw JSON Schema.

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?

Opens with a specific verb+resource+scope: 'Present a timed stimulus sequence and record per-burst firing in one call.' The second sentence explicitly names the alternative it replaces ('a hold (`stimulate_area_batch` with `bursts`) and a monitor concurrently'), so an agent can distinguish it from the sibling hold tools without opening their schemas.

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

Usage Guidelines4/5

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

Clearly states when to prefer this over the hold+monitor pattern, when to use `steps_file` ('long protocols, such as replaying recorded values') versus `steps` ('Pass steps or steps_file, not both'), and when `compact`/`tail_bursts` are relevant. It lacks an explicit 'do not use when...' exclusion for cases where a plain hold is still better.

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