Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

diagnose_mapping_plasticity

Read-only

Diagnose why a source-to-destination mapping's weights are not changing by checking plasticity rules, realized synapse counts, weight statistics, expected initial weight, and sample synapses.

Instructions

Diagnose live plasticity state for one mapping pair.

Designed for questions like "why is weight not increasing?":

  • mapping rule presence and plasticity flags/modes

  • realized synapse count from src filtered to dst

  • weight statistics (min/max/avg/sum, zero/nonzero counts)

  • expected_initial_weight for plastic rules (abs of the rule's postSynapticCurrent_multiplier, default 1.0), to compare against the live stats

  • sample of matched synapses for direct inspection

  • matching uses the source's outgoing and the destination's incoming realized synapses, so memory-neuron edges (ids >= 50,000,000, absent from the regular neuron listing) are included

  • when either area is a memory area, synapse_scan adds memory_neuron_synapse_count and placeholder_synapse_count; resolution.destination_neuron_count then counts the destination's live memory neurons, not its placeholder neurons

Args: src_area: Source cortical area ID (base64). dst_area: Destination cortical area ID (base64). sample_limit: Max matched synapses echoed in sample (1..200).

Returns: Structured diagnostics combining rule and runtime synapse state.

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": "diagnose_mapping_plasticity"
  }
}

Input Schema

NameRequiredDescriptionDefault
dst_areaYes
src_areaYes
sample_limitNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.5/5.0
Behavior4/5

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

With readOnlyHint=true already covering safety, the description adds substantial behavioral context: matching uses source outgoing plus destination incoming realized synapses, memory-neuron edges (ids >= 50,000,000) are included, and memory-area scans add memory/placeholder synapse counts with destination_neuron_count counting live memory neurons. It does not discuss read cost, latency, or limit behavior for large mappings, so it stops short of 5.

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?

Purpose is front-loaded in the first sentence, followed by a scannable bullet list of returned diagnostics and then Args/Returns. The memory-area bullet is dense and clause-heavy, but every line adds information rather than restating the name.

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 3-parameter read-only diagnostic with an output schema, this is complete: parameters, matching semantics, edge-case behavior for memory areas, and the derivation of expected_initial_weight are all covered, so an agent can call it correctly and interpret results without further documentation.

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 coverage is 0%, so the description carries the full burden and does it: src_area and dst_area are documented as base64 cortical area IDs, and sample_limit is constrained to 1..200 with its effect (max matched synapses echoed in sample) explained, adding the range the schema omits.

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?

States a specific verb and resource: "Diagnose live plasticity state for one mapping pair." It then enumerates exactly what is diagnosed (rule presence/flags, realized synapse count, weight stats, expected initial weight, sample), which lets an agent distinguish it from siblings like diagnose_memory_twin_mapping or watch_mapping_weights without opening the 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?

Gives a concrete motivating use case ("why is weight not increasing?"), which is more than implied usage. It does not name an explicit alternative or state when not to use it, so it falls short of the 5 bar for routing guidance.

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