Skip to main content
Glama
FEAGI MCP Server

FEAGI MCP Server

Official
by feagi

create_io_area_for_unit

Provision the exact IPU/OPU area a sensorimotor unit binds to: computes the canonical wire id, creates the matching area, and verifies the server-assigned id.

Instructions

Create the IPU/OPU area a sensorimotor unit binds to, with its canonical id derived.

One call that (1) computes the canonical wire id + configuration flag for the unit (the same derivation the Rust register functions use), (2) creates the matching IPU/OPU area, and (3) verifies the server-assigned id equals the computed one. Use this to provision the exact area a coder (e.g. a Trainer population encoder / class decoder, or a robot device) will publish to / read from, instead of hand-picking cortical_id + data_type_configs_by_subunit for create_cortical_area.

Args: name: Human-readable area name (BV / genome label). subtype: 4-char cortical_subtype (e.g. icnt count input, ocnt count output). channels: TOTAL x-width of the area (per-device width sent is channels // device_count; must divide evenly). depth: Neuron depth / bins (z-extent); must match the coder's bins. Value-coded units (Depth Map idpt, Object Segmentation iseg/oseg) are always 1: the payload is the potential. Build bins with expand_value_to_bins instead. variant: IO configuration variant (default percentage for the count family). framing: absolute or incremental. positioning: linear or fractional. unit_index: Device / group instance index (bytes 6-7 little-endian u16). subunit_index: Sub-area index within the unit (flag bits 4-7, 0-15). device_count: Number of devices for the area. position: Optional [x, y, z] request (FEAGI may auto-place; see placement). height: Per-device y-extent (default 1). Planar units such as iimg cartesian_plane need the image height here: channels is the width, depth the colour channels (28x28x3 -> channels=28, height=28, depth=3).

Returns: {"computed_cortical_id", "assigned_cortical_id", "verified", "config_flag", "create_result"} on success, or {"error": ...}.

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": {
      "name": "<name>",
      "subtype": "<subtype>",
      "channels": "<channels>",
      "depth": "<depth>"
    },
    "name": "create_io_area_for_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
depthYes
heightNo
framingNoabsolute
subtypeYes
variantNopercentage
channelsYes
positionNo
unit_indexNo
positioningNolinear
device_countNo
subunit_indexNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A4.6/5.0
Behavior4/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 well: it discloses that one call performs three steps (compute id, create area, verify server-assigned id) and that the response includes a 'verified' flag plus an error shape. It omits mutation-side risks such as behavior when an area with the same id already exists, idempotency, or required permissions, which keeps it short of a 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?

Front-loaded with a one-line summary and a numbered three-step explanation before any parameter detail, so skimming works. The Args block is long but nearly every line adds distinct information; only the Returns block is partially redundant with the existing output schema.

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 12-parameter mutation tool with no annotations, the definition covers derivation, parameter meaning, cross-field constraints (channels must divide evenly by device_count), output fields, and error form. Missing pieces are operational rather than semantic — failure behavior on an existing area id and whether the create is atomic with verification.

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% across 12 parameters, yet the description supplies meaning for every one: channels is total width with per-device division, depth ties to the coder's bins with value-coded exceptions, framing/positioning enumerate their allowed values, unit_index and subunit_index are tied to wire-format bit positions, and height is explained via the 28x28x3 example. This is meaning well beyond the bare titles in the schema.

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 — create the IPU/OPU area a sensorimotor unit binds to — and explains the derived-canonical-id twist in the first sentence. It explicitly contrasts itself with the sibling 'create_cortical_area', so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives a direct when-to-use rule ('to provision the exact area a coder ... will publish to / read from') and names the alternative it replaces ('instead of hand-picking cortical_id + data_type_configs_by_subunit for create_cortical_area'). It also routes value-coded units away from this parameter and toward 'expand_value_to_bins', which is real alternative selection.

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