Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

monitor_activity

Read-only

Sample real-time neural firing rates, active neurons, and spike patterns in a cortical area, with lifetime fire-count stats that distinguish currently quiet circuits from never-fired ones.

Instructions

Monitor real-time neural activity, plus lifetime fire-count enrichment.

Observes firing rates, active neurons, and spike patterns over the sample window. The base REST endpoint reports only spikes seen in that window, which can incorrectly suggest a circuit is dead when it is merely silent at sample time. By default this tool also attaches lifetime_stats aggregating per-neuron consecutive_fire_count across the area, so a "0 spikes now but lifetime_active_count > 0" result clearly distinguishes "currently quiet" from "never wired/never fired".

Rates are sampled over the window, not counted per burst: a rate near half the burst frequency does not show that a neuron fires every other burst. For per-burst cadence read get_fire_queue_detailed on consecutive bursts.

Args: area_id: Cortical area identifier (e.g., "cCPGa_", "opose0"). duration_ms: Sample window in milliseconds (default: 1000). include_lifetime_stats: When True (default), attach lifetime_stats. Set False for very large areas where the extra fan-out is unwanted. lifetime_neuron_cap: Maximum neurons inspected for lifetime stats (default: 64). Caps round-trips for big areas. summary_only: When True (default), omit spike_history and the active_neurons id list. Set False only to inspect raw spikes.

Returns: Activity data including firing_statistics (sample window) and, when enabled, lifetime_stats with max_consecutive_fire_count, lifetime_active_count, and top_neurons.

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_id": "<area_id>"
    },
    "name": "monitor_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
area_idYes
duration_msNo
summary_onlyNo
lifetime_neuron_capNo
include_lifetime_statsNo

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 readOnlyHint=true already covering the safety profile, the description still contributes real operational context: the base endpoint can falsely suggest a dead circuit, lifetime_stats fan-out has a cost capped by lifetime_neuron_cap, and rates are window-averaged rather than per-burst. None of that is recoverable from the annotations, and nothing contradicts them.

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 purpose and the critical 'silent vs dead' distinction are front-loaded, and the caveat paragraphs are dense rather than padded. The explicit Returns section is somewhat redundant given an output schema exists, and the heavy backtick formatting makes it read like docstring prose rather than routing text.

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 five-parameter live-sampling tool with an output schema, everything an agent needs is present: sampling semantics, cost trade-offs, parameter intent, and return field names. The output schema means return values needn't be explained further, and the description is complete anyway.

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 does so: all five parameters are explained with defaults and rationale, including why to disable lifetime stats and what summary_only suppresses. area_id even gets format examples ("cCPGa_", "opose0").

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 states a specific verb and resource (monitor real-time neural activity) and immediately names the added behavior (lifetime fire-count enrichment). It also draws an explicit boundary against get_fire_queue_detailed for per-burst cadence, so an agent can distinguish it from a sibling 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 Guidelines4/5

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

Concrete when-to-use guidance is present: set include_lifetime_stats=False for very large areas where fan-out is unwanted, set summary_only=False only to inspect raw spikes, and use get_fire_queue_detailed instead for per-burst cadence. What's missing is any statement about when to prefer this live-sampling tool over the closely named monitor_activity_batch or historical analysis – useful context, but not an exclusion an agent would be misled without.

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