Skip to main content
Glama

send_stim_event

Send stimulation events, log them against the EEG clock, and record failures as part of the session. Optionally add markers to the acquisition stream for self-describing data.

Instructions

Deliver one stimulation command, and log it against the EEG clock.

The event is written to the session log whether the transport succeeds or fails -- a failed stimulation attempt matters just as much to the record. When the acquisition source supports markers, the same event is also punched into the stream itself so the recording is self-describing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo'marker' (event code only), 'pulse' (code then clear after duration_ms), 'train', 'ramp', or 'custom'. Backends advertise which kinds they support via list_stim_backends.marker
unitNoUnit label for intensity, for the record.
labelYesEvent name, e.g. 'tms_pulse' or 'cue_left'.
valueNoNumeric code for marker streams and trigger lines. Nonzero.
paramsNoExtra fields made available to command templates.
targetNoCoil, montage or channel identifier, for the record.
backendNoWhich attached backend to use. Defaults to the session default.
intensityNoPhysical dose for hardware backends -- %MSO for TMS, mA for tES. Clamped against the configured ceiling; ignored by software backends.
session_idYesThe session to stimulate within.
duration_msNoPulse width or stimulation duration.
also_mark_sourceNoAlso write the code into the acquisition stream's own marker channel.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses a non-obvious behavior: the event is logged to the session log even if the transport fails, and it is also punched into the acquisition stream when markers are supported. This goes beyond a simple 'deliver' and gives valuable operational insight.

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

Conciseness5/5

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

The description is two concise paragraphs. The first sentence states the primary action, and the second explains logging and stream marker behavior. Every sentence earns its place; no redundancy or filler.

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?

The tool has 11 parameters but the schema fully documents them, and an output schema exists so return values need no explanation. The description covers the core purpose and key behaviors (failure logging, stream marking), which is sufficient for an agent to select and use the tool correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already described. The description adds some context (e.g., 'logged against the EEG clock', marker behavior) but does not elaborate on specific parameters beyond what the schema provides. Thus the baseline 3 is appropriate.

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 description opens with 'Deliver one stimulation command, and log it against the EEG clock', using a specific verb and resource. It clearly distinguishes itself from sibling tools like send_stim_train (train vs. one command) and arm/disarm_stim (delivery vs. setup).

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?

The description establishes clear context: it delivers a single stimulation command and logs it. While it does not explicitly name alternatives or exclusions, the phrase 'one stimulation command' implicitly separates it from send_stim_train and other siblings. No when-not-to-use guidance is given, but the purpose is focused enough.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AImplifier/eeg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server