Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

expand_value_to_bins

Read-only

Converts a one-layer value plane into a W×H×levels neuron bin area using cumulative thresholds, enabling downstream circuits to learn by neuron for depth-nearness or class-map tasks.

Instructions

Create a W x H x levels bin area driven by a one-layer value plane.

Use when downstream areas must learn by neuron, not by potential: "obstacle nearer than X" from a Depth Map, or one neuron per class from a class map. The bins use a firing threshold that rises along Z, so bin z fires when the value is at least (z + 0.5) * value_max / levels: a cumulative (thermometer) code. For a class map use levels = class_count; class c then fires bins 0..c. For one-hot bins add an inhibitory mapping from each bin to the bin below.

Args: src_area: Source value plane (base64), must be W x H x 1. levels: Bin count (Z depth of the new area), 1..9999. name: Name for the new area (function-based, e.g. Depth_Near_Bins). brain_region_id: Functionally named parent circuit. position: [x, y, z] anchor for the new area. value_max: Largest value the plane carries (1.0 for class maps and depth planes).

Returns: bins_area id, base_threshold, threshold_increment_z, and the coding note.

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>",
      "levels": "<levels>",
      "name": "<name>",
      "brain_region_id": "<brain_region_id>",
      "position": "<position>"
    },
    "name": "expand_value_to_bins"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
levelsYes
positionYes
src_areaYes
value_maxNo
brain_region_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A3.9/5.0
Behavior1/5

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

The description repeatedly frames this as a write: "Create a ... bin area", "Name for the new area", and it returns a new ``bins_area`` id, which implies persistent state mutation in the brain structure. The annotations declare readOnlyHint: true, asserting no side effects are performed. These are directly incompatible claims about the same operation.

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?

Front-loaded with purpose, then use case, then the threshold formula, then Args/Returns — a sensible top-down order where a reader can stop early. It is dense but nearly every clause adds operational information; the only slight cost is the multi-sentence digression on one-hot inhibitory mapping bundled into the summary paragraph.

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 six-parameter creation tool with no schema descriptions, the definition supplies the source-plane format constraint, level bounds, the threshold formula and its cumulative-code semantics, per-parameter meaning, and the return payload. An agent has everything needed to call it correctly, and an output schema exists to cover return shape.

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: each of the six parameters gets meaning and constraints — src_area must be ``W x H x 1``, levels is Z depth bounded 1..9999, value_max is the plane's largest value (1.0 for class/depth), position is ``[x, y, z]``, name is function-based with an example, brain_region_id is the parent circuit.

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+shape: "Create a ``W x H x levels`` bin area driven by a one-layer value plane." That distinguishes it from plain area-creation siblings by naming the exact artifact (a W x H x levels bin area sourced from a value plane) and the driving input.

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 an explicit when-to-use framing — "Use when downstream areas must learn by neuron, not by potential" — plus two concrete triggering scenarios (Depth Map proximity, class map) and procedural variants (levels = class_count for class maps; add inhibitory mapping for one-hot). It does not name a competing tool or state when NOT to use it, which keeps it short of a 5.

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