Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

watch_mapping_weights

Samples a mapping's synapse weights over time to reveal min, max, avg, and extreme values, showing whether plasticity is learning. Use it to monitor weight drift and diagnose stalled learning.

Instructions

Sample one mapping's synapse weights over time (series of min/max/avg and extremes).

window_s is an alias of duration_s (it wins when both are given). samples=1 or a window of 0 takes one sample and returns at once; samples=N takes N samples interval_s apart. The result's summary is the last sample's count, min, max, avg, count_at_zero and count_at_max_weight (the plastic rule's max_weight, counted over every matched synapse; no cap without a plastic rule).

Every interval_s (at least 0.5 s) for up to 25 s, takes diagnose_mapping_plasticity() statistics: matched synapse count, min, max, avg, count_at_zero, count_at_cap (cap is the plastic rule's max_weight, named in weight_cap_source) and the ids of the five largest and five smallest synapses (from up to 200 matched synapses). avg_delta and max_delta compare the last sample with the first. A flat series under co-activity means learning is not happening; see freeze_mapping_plasticity() and reset_mapping_weights().

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": {
      "src_area": "<src_area>",
      "dst_area": "<dst_area>"
    },
    "name": "watch_mapping_weights"
  }
}

Input Schema

NameRequiredDescriptionDefault
samplesNo
dst_areaYes
src_areaYes
window_sNo
duration_sNo
interval_sNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.1/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 well: it states alias precedence ('window_s is an alias of duration_s ... wins when both are given'), fast-path behavior (samples=1 or window 0 returns at once), the 0.5 s minimum interval and 25 s ceiling, the 200-synapse sample ceiling, and that avg_delta/max_delta compare last sample to first. It also explains how uncalibrated weights behave ('no cap without a plastic rule'), which is exactly the sort of behavior annotations could not have conveyed.

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 purpose is front-loaded and the opening line is efficient, but the text repeats itself: the first paragraph already enumerates count/min/max/avg/count_at_zero/count_at_max_weight as the summary, then the second paragraph re-enumerates the same statistics for the interval series. The two paragraphs also use inconsistent naming (count_at_max_weight vs count_at_cap), which costs the reader effort without adding information.

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

Completeness4/5

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

For a time-series sampling tool with an output schema, the definition covers sampling cadence, limits, alias conflicts, delta semantics, cap provenance, and next-step tooling — enough for an agent to call it correctly. Minor gaps remain: no note on behavior when the mapping does not exist or when the window is shorter than the interval, and return values are re-explained despite the output schema already covering them.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it does for most parameters: window_s alias semantics and precedence, duration_s, samples (including the samples=N spacing rule), and interval_s with its 0.5 s floor. The two required parameters, src_area and dst_area, are only implied by 'one mapping' — their expected identifier format is never described, leaving a real gap in a 6-parameter tool.

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

Purpose4/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: 'Sample one mapping's synapse weights over time (series of min/max/avg and extremes).' That is enough to distinguish it from a single-snapshot diagnostic, and it names the mapping restriction (one mapping, keyed by src/dst areas). It stops short of naming a sibling directly, so differentiation relies on inference.

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?

It supplies an interpretive rule ('A flat series under co-activity means learning is not happening') and routes the agent to two concrete follow-ups, freeze_mapping_plasticity() and reset_mapping_weights(). What is missing is an explicit statement of when to watch over time versus calling diagnose_mapping_plasticity() once, which the agent must infer from 'over time' and 'series'.

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